Jump to content

Hide/Redirect spiders from parameterized URLs


BlueSkyIS

Recommended Posts

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!

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.