If you do searches and my site appears, often the three urls above appear. I don't want the above indexed as they are currently but I obviously want it to index
The "product" urls are a hangover of when a site I once owned redirected to Shop Codes. There's a site still linking to those pages with the "?product" parameters in but removing all those links would be a painful process.
So I am looking for a safe .htaccess or robots.txt solution that won't harm the indexing of the 'real' homepage.
Re: Stopping Google indexing incorrect versions of my home page
if its a script that handles the ?product= part which I imagine it will be tell google that its moved something (in php) like...
PHP Code:
if ($product) {
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.shopcodes.co.uk" );
}
at the very top of the index / default page, then if you go to http://www.shopcodes.co.uk?product=anything it should do a 301 permanent redirect to the main page, google should then eventually forget about the ?product URL's rather than just ignorning them whilever the robots file is there
__________________ Dan Morley Alpharooms.com
daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up My Blog | Cheap Holidays