-1

How to redirect this url with .htaccess

http://www.example.com/products.php?IDZ=0-0-0-106-1&start=156

to

http://www.example.com/

301 permanent redirection

4

1 回答 1

0
RewriteCond %{REQUEST_URI}  ^/products\.php$
RewriteCond %{QUERY_STRING} ^IDZ=(.*)$ [OR]
RewriteCond %{QUERY_STRING} ^IDZ=(.*)&start=(.*)$
RewriteRule ^(.*)$ http://www.example.com/? [R=302,L]

I solved the issue this may be helpful for other people

于 2013-06-03T06:13:04.437 回答