Kobi
Kobi

Reputation: 79

Internal redirect urls to external sites shows up on google

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

Answers (1)

anddontcallmeshirley
anddontcallmeshirley

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

Related Questions