Tuesday, 1 October 2013

Rewrite URL appending unwanted parameter to end of new URL

Rewrite URL appending unwanted parameter to end of new URL

I've implemented this rewrite rule:
RewriteCond %{QUERY_STRING} ^pBrand=GRAVIS$ [NC]
RewriteRule ^brand.php$ /brand/gravis/ [R=301,L]
The redirect works fine however, the end result is:
http://site.com.au/brand/gravis/?pBrand=GRAVIS
The problem is that I don't want to have the "?pBrand=GRAVIS" appended...
how do I get rid of it?

No comments:

Post a Comment