2

We have links to external URLs implemented with HTTP 301 redirects for the purpose of counting clicks.

Searching our site in Google using the site: modifier results in the redirecting URLs returned with title and snippet from the external content.

Why is this? How can this be prevented? Could the reason be the use of a permanent redirect in place of a temporary one?

See it by searching for site:weblabor.hu inurl:/blogmarkok/latogatas lang:en

1

Googlebot is finding your redirect links but it probably can't crawl them because you have disallowed them in robots.txt. It then thinks that your site has additional content and it "indexes" it with the link text.

You could get around this by making your links point exteranally, but use JavaScript to write in the tracking. That way Googlebot can see where they go, and users still get tracked.

<a href="http://example.com/" 
onmousedown="if(this.href.indexOf("http")==0)this.href='/track?url='+encodeURIComponent(this.href)">
Link to external site</a>
| improve this answer | |
  • There is no rule in robots.txt disallowing these URLs. It must be something else. – Joó Ádám Feb 18 '15 at 11:59
  • Please see the search results added to the question. – Joó Ádám Feb 18 '15 at 12:09
  • I've confirmed that the are indeed 301 permanent redirects which don't usually have that problem. Can you use "fetch as Google" in webmaster tools on one of these URLs and report back to what Googlebot is seeing? – Stephen Ostermiller Feb 18 '15 at 12:18
-1

The reason is in the way you've added the link.

The attribute rel="nofollow" is required on every external link you put in your page, robots wouldn't index a link with rel="nofollow" attribute in the anchor tag.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.