httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47925] New: apache redirection not working
Date Thu, 01 Oct 2009 14:28:01 GMT

           Summary: apache redirection not working
           Product: Apache httpd-2
           Version: 2.0.52
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All


 I am trying to set up apache redirection rule for redirecting all of our non
'www' domains to 'www' domains. I got the redirection rule from apache manual
but the rules does not work when we have subdirectories and parameters at the
end of url.

The redirection rule i have is 

RewriteCond %{HTTP_HOST} ^$
 RewriteRule ^/(.*)$$1 [L,R]

The above rule works for all urls except when I have urls like

Instead of redirecting the above url to

It is redirecting it to home page of site with "?content=20090624_075115_6540"

I need a generic redirection rule to redirection all non 'www' urls to 'www'
urls. I have to apply this rule on almost 50 web sites.


Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message