httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47925] New: apache redirection not working
Date Thu, 01 Oct 2009 14:28:01 GMT
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: bugs@httpd.apache.org
        ReportedBy: sharjeel.tariq1@gmail.com


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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message