httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tiago Marques <tiago...@gmail.com>
Subject [users@httpd] Question about QUERY_STRING redirects with mod_rewrite
Date Tue, 09 Feb 2010 19:00:09 GMT
Hi,

I'm trying to do 301 redirects from a website which used queries extensively
but doesn't use any now. I found this piece of code but it doesn't seem to
work.

 RewriteEngine on

RewriteCond %{QUERY_STRING} ^id=13$

RewriteRule ^/page.php$ http://www.example.com/newname.htm? [L,R=301]


All the examples I found are very similar to this one but I can't get any of
them to work, it simply keeps the ?id=13 part and doesn't rewrite the url.
Am I doing anything wrong or has something changed from one mod_rewrite
revision to another?

Best regards,
Tiago Marques

Mime
View raw message