Re: [us...@httpd] Question about QUERY_STRING redirects with mod_rewrite

2010-02-09 Thread Tiago Marques
On Tue, Feb 9, 2010 at 7:10 PM, Eric Covener wrote: > On Tue, Feb 9, 2010 at 2:00 PM, Tiago Marques wrote: > > 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. > >> >

Re: [us...@httpd] Question about QUERY_STRING redirects with mod_rewrite

2010-02-09 Thread Eric Covener
On Tue, Feb 9, 2010 at 2:00 PM, Tiago Marques wrote: > 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$ >> >> Rewr

[us...@httpd] Question about QUERY_STRING redirects with mod_rewrite

2010-02-09 Thread Tiago Marques
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