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!

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.