Affiliate Marketing
Forum Search


Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 13-06-07
befuddle's Avatar
Registered User
 
Join Date: Jan 2005
Location: Leeds, UK
Posts: 577
Thanks: 2
Thanked 1 Time in 1 Post
befuddle is an unknown quantity at this point
  Stopping Google indexing incorrect versions of my home page

I need some help with .htaccess or equivalent. What's the most efficient way of stopping Google indexing my home page with these appended parameters?

www.shopcodes.co.uk/?product=burberry
www.shopcodes.co.uk/?product=calvin_klein
www.shopcodes.co.uk/?product=prada

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

www.shopcodes.co.uk

Google is sometimes returning these two urls below as first and second listings but the pages are exactly the same.

www.shopcodes.co.uk
www.shopcodes.co.uk/?product=prada

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 13-06-07
tbp tbp is offline
Registered User
 
Join Date: Dec 2006
Posts: 1,894
Thanks: 0
Thanked 6 Times in 6 Posts
tbp is an unknown quantity at this point
  Re: Stopping Google indexing incorrect versions of my home page

Disallow: /?product=*

Think that would work, test it in google sitemaps though
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 13-06-07
morleymouse's Avatar
Super Member
 
Join Date: Aug 2003
Location: Costa Del Sheffield
Posts: 2,694
Thanks: 0
Thanked 1 Time in 1 Post
morleymouse is an unknown quantity at this point
  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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 13-06-07
befuddle's Avatar
Registered User
 
Join Date: Jan 2005
Location: Leeds, UK
Posts: 577
Thanks: 2
Thanked 1 Time in 1 Post
befuddle is an unknown quantity at this point
  Re: Stopping Google indexing incorrect versions of my home page

Thanks tbp and Dan. I've implemented both.

Cheers,
Ray
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fonetastic mobile sales (none) Leeky The Affiliate Marketing Lounge 52 23-01-06 12:37 PM
google: indexing / description Yogi62 Organic Google Search Optimisation 5 04-12-03 12:19 AM
How Google works by Sergey Brin and Larry Page zaq Organic Google Search Optimisation 0 29-09-03 12:54 AM
New Home Page goes live perfiliate buy.at 4 16-02-03 03:55 AM


Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7