Results 1 to 4 of 4

 

Thread: Stopping Google indexing incorrect versions of my home page

  1. #1
    befuddle's Avatar
    Registered User

    Status
    Offline
    Join Date
    Jan 2005
    Location
    Leeds, UK
    Posts
    1,101
    Thanks
    91
    Thanked 61 Times in 45 Posts


    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.

  2. #2
    tbp
    Registered User

    Status
    Offline
    Join Date
    Dec 2006
    Posts
    1,998
    Thanks
    0
    Thanked 22 Times in 22 Posts
    Disallow: /?product=*

    Think that would work, test it in google sitemaps though

  3. #3
    Super Member

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Costa Del Sheffield
    Posts
    2,838
    Thanks
    5
    Thanked 18 Times in 14 Posts
    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

  4. #4
    befuddle's Avatar
    Registered User

    Status
    Offline
    Join Date
    Jan 2005
    Location
    Leeds, UK
    Posts
    1,101
    Thanks
    91
    Thanked 61 Times in 45 Posts
    Thanks tbp and Dan. I've implemented both.

    Cheers,
    Ray



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Fonetastic mobile sales (none)
    By Leeky in forum Affiliate Marketing Lounge
    Replies: 48
    Last Post: 23-01-06, 01:37 PM
  2. New Home Page goes live
    By perfiliate in forum Affiliate Window & buy.at
    Replies: 4
    Last Post: 16-02-03, 04:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2