https://issues.apache.org/bugzilla/show_bug.cgi?id=47925
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
AssignedTo: [email protected]
ReportedBy: [email protected]
Hi,
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} ^example.com$
RewriteRule ^/(.*)$ http://www.example.com/$1 [L,R]
The above rule works for all urls except when I have urls like
http://example.com/news/headlines/more.jsp?content=20090624_075115_6540
Instead of redirecting the above url to
http://www.example.com/news/headlines/more.jsp?content=20090624_075115_6540
It is redirecting it to home page of site with "?content=20090624_075115_6540"
http://www.example.com/index.jsp?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.
Thanks,
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]