httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Ionescu <bobsie...@googlemail.com>
Subject Re: [users@httpd] apache redirection does not work
Date Thu, 01 Oct 2009 16:37:54 GMT
2009/10/1 Sharjeel Tariq <sharjeel.tariq1@gmail.com>:
> 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" at the end
>
>
> http://www.example.com/index.jsp?content=20090624_075115_6540

Please enable a RewriteLog with

Rewritelog logs/rewrite_log
Rewriteloglevel 6

in your httpd.conf and post the result (may be as an attachment).

Bob

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message