BlueSkyIS Posted September 19, 2007 Share Posted September 19, 2007 Our site uses mod_rewrite to create friendly URLs, like this: RewriteRule ^product-category/(.*)/(.*)\.php$ /products/index.php?prod_type=$1&prod_page=$2 [L,NC] This way, the less ugly URL /product-category/bikes/details.php is rewritten on the server as /products/index.php?prod_type=bikes&prod_page=details PROBLEM: We recently changed domains and during the change we redirected from the old domain to the new one. That ended up sending search engine spiders to the new domain with the ugly URL parameters. Our rewrites still work on the new server, but they are carrying along the parameters in the URL like so: /product-category/bikes/details.php?prod_type=bikes&prod_page=details QUESTION: How do I get rid of the parameters appended on the end of the rewritten URL or 301 the spiders to the parameter-free URL without creating an "Internal Server Error" due to a circular reference? Thanks for any help! Quote Link to comment https://forums.phpfreaks.com/topic/69950-hideredirect-spiders-from-parameterized-urls/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.