can anyone see a problem with this.........
- Code: Select all
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /test\.php(\?([^\ ]*))?\ HTTP/1\.
RewriteCond %{QUERY_STRING} ^vendor=me&m=product_list&c=([^&]*)&wType=([^&]*)&wSize=([^&]*)$
RewriteRule ^test\.php$ /test_$2_$3_$1.html? [L,R=301]
For SEO purposes and to stop google seeing both pages and hence classing them as duplicate content, my aim is to redirect the old dynamic urls to the new static ones as follows..
i.e.
test.php?vendor=me&m=product_list&c=21&wType=GGL&wSize=M08
... to ...
test_GGL_M08_21.html
at present these rules do nothing... if i remove the QUERY_STRING condition it redirects me to ...
test___.html
so i presume the problem lies within that condition?
if anyone could help me with this it would be greatly appreciated...
regards,
Sam.