How to set noindex for outbond links...?

rhnkmr

Regular Member
Joined
Oct 16, 2012
Messages
394
Reaction score
45
I have affiliate links on my site pages and don't want Google to index them so please tell me how to set no-index for a external link on a page.
 
I guess it was

Code:
rel="nofollow"

you should place it like this

Code:
<a href="youraffilitatelink.com" rel="nofollow">tekst</a>
 
If you don't allow Google to follow your affiliate links, it won't index them.

How do you use your affiliate links? Do you use directories, like http://yoursite.com/out/affiliated-site/?

If so, you can update your robots.txt file with the following:

Code:
User-agent: * Disallow: /out/

Where '/out/' is your directory's name.

If you use simple affiliate links, you can use the rel="nofollow" tag in your links.

Code:
<a href="http://affiliateurl.com/my-damn-ugly-affiliate-link/58765/8724" rel="nofollow">LINK</a>
 
Back
Top