I have a client that uses Google Base with their eCommerce store. They want to redirect all of their specific product links (i.e. white-large-shirt.htm, red-medium-shirt.htm) to the configurable url (i.e. shirt.htm).
This is so the customer when clicking on the white-large-shirt link in Google Base can be redirected to the page where they can select from other colors and sizes as well. Not just the one option product page.
I can do this easily in one of the php controller files but I am wondering what the ramifications are for SEO or 'Black-Hat' redirecting.
Thanks.
EDIT
Here is the code snippet I used on the product controller class.
//Show configurable products only
if($product->type_id == "simple"){
$parentId = $product->loadParentProductIds()->getData('parent_product_ids');
if(isset($parentId[0]))
{
$product = Mage::getModel('catalog/product')->load($parentId[0]);
}
}