Reputation: 79
I have a redirect URL for external links example would be <a href="www.mysite.com/redirect?id=234gf34">click</a>
which does a great job. However, making a site search on google like this 'site:www.mysite.com' shows my redirect links, and clicking on them takes me directly to where its redirecting to.
Is there any way to stop google from using those specific links in their results?
Any help would be much appreciated!
Upvotes: 0
Views: 60
Reputation: 21
You could create a robots.txt file and place these 2 lines of text in it:
User-agent: *
Disallow: /redirect
See the explanation here, http://www.robotstxt.org/robotstxt.html
Upvotes: 2