SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Dec 2009
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mod_rewrite problem

    Hi
    I am writting the below code in httpd-vhosts.conf. but it is not working for me… Can anyone explain me where I am wrong.

    RewriteCond %{LA-U:REMOTE_USER} (.+)
    RewriteRule ^%{HTTP_HOST}:8080/seaside/UserLoginPage?userid=%1$ %{HTTP_HOST}:8080/seaside/UserLoginPage?[L]

    I want to remove query string from my URL but I need it also while I logged in my home page. If any one know any other way of doing this so that I can retain my authantication.
    I really stuck with this problem and need to solve it urgently...


    Thanks & Regards

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,604
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    Harry,

    Sorry, I don't normally venture into the Server board so I just found this post and moved it to the Apache forum.

    Basically, your RewriteRule is wrong - it can ONLY examine the {REQUEST_URI} variable in the regex and you've got it looking at the {HTTP_HOST}. Please re-read the article for more examples.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •