homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
Forum Library, Charter, Moderators: goodroi

Sitemaps, Meta Data, and robots.txt Forum

Block affiliate tracking
but keep the main page in Google

 9:57 am on Jul 9, 2007 (gmt 0)

Hi People,

Had a few looks into this and cannot find a solution so hoping someone here can help.

We post items as /item.php/85756

We ask affiliates to send us traffic as:

Google is now indexing /item.php/85756?ref=partner1

Want to still allow Google into /item.php/85756

but block the?ref=partner1

Is this possible using robots.txt?



 11:24 am on Jul 9, 2007 (gmt 0)


a better and more solid way would be to redirect 301 anything that comes in with an affiliate link to a url without the aff parameter.



 1:14 pm on Jul 9, 2007 (gmt 0)

I don't quite understand what you are trying to do.

Are you saying that your affiliates links are being indexed and ranked by google and you want to stop that happening?

Or that you don't want the end user to see the aff code on the end of the string?


[edited by: ska_demon at 1:53 pm (utc) on July 9, 2007]


 1:23 pm on Jul 9, 2007 (gmt 0)

that is going to make some affiliates not happy. affiliates generally want to see their id code in the url to make sure they are getting credit for all sales. the redirect would solve the search engine issue but create a new issue with affiliates. maybe your affiliates aren't that sensitive and will be ok with it.

an alternative would be to use pattern matching aka wildcards in your robots.txt for google.

good luck


 2:26 pm on Jul 9, 2007 (gmt 0)

Cheers oziman, very sensible! Have now done this, thanks for the help.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved