You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/10/01 16:28:01 UTC
DO NOT REPLY [Bug 47925] New: apache redirection not working
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
DO NOT REPLY [Bug 47925] apache redirection not working
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47925
Will Rowe <wr...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |NEEDINFO
--- Comment #3 from Will Rowe <wr...@apache.org> 2009-10-06 09:20:09 PDT ---
Prove your assertion with at RewriteLogLevel 9 and provide the log of a single
request on this incident. 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
DO NOT REPLY [Bug 47925] apache redirection not working
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47925
sharjeel <sh...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #2 from sharjeel <sh...@gmail.com> 2009-10-06 07:38:56 PDT ---
I had raised the question in http://httpd.apache.org/userslist.html but that
did not produce any result. I think it is a bug in apache. The redirection rule
was taken from apache manual, so it should handle all types of urls.
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^/(.*)$ http://www.example.com/$1 [L,R]
The above rule does not handles urls like
http://example.com/news/headlines/more.jsp?content=20090624_075115_6540
The rule should redirect
http://example.com/news/headlines/more.jsp?content=20090624_075115_6540
to
http://www.example.com/news/headlines/more.jsp?content=20090624_075115_6540
But it is actually redirecting the url to home page of site with
"?content=20090624_075115_6540" at the end of url.
http://www.example.com/index.jsp?content=20090624_075115_6540
--
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
DO NOT REPLY [Bug 47925] apache redirection not working
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47925
Dan Poirier <po...@pobox.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Dan Poirier <po...@pobox.com> 2009-10-01 08:01:32 PDT ---
Bugzilla is not the right place to ask for help configuring
your web server.
Please raise your question on the users mailing list at
http://httpd.apache.org/userslist.html (and first read the advice
there about how to ask a question in a way that's likely to get
helpful answers).
If discussion there concludes that there is a bug, by all means
re-open this bug report and update it with the conclusions from the
discussion.
Thanks for helping those who volunteer to work on Apache to make the
most of their time.
--
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
[Bug 47925] apache redirection not working
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47925
Jeff Trawick <tr...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Jeff Trawick <tr...@apache.org> ---
requested info not provided since 2009
--
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