Forum Moderators: phranque

Message Too Old, No Replies

Redirecting question mark - feedback

         

luksus

12:01 pm on Apr 24, 2006 (gmt 0)

10+ Year Member



I got similar problem described here:
[webmasterworld.com...]

however, solution in that thread doesn't seem to work in my case.

I got following URL

www.example.com/pagename.html?varvar
and I want it to be redirected to the new location, e.g.

www.example.com/newlocation/

Every time I try to use

RewriteCond %{THE_REQUEST} ^([A-Z]{3,9})\ /pagename\.html\?varvar\ HTTP/
RewriteRule ^pagename\.html$ /newlocation/ [R=301,L]

It always carries on the query string, in this case:

www.example.com/newlocation/?varvar

any ideas how to make it:

www.example.com/newlocation/

?

Thanks.

Luke

luksus

4:20 pm on Apr 24, 2006 (gmt 0)

10+ Year Member



I got that finally sorted,
thats the solution:

RewriteCond %{THE_REQUEST} ^([A-Z]{3,9})\ /pagename\.html\?varvar\ HTTP/
RewriteRule ^pagename\.html$ /newlocation/? [R=301,L]