My website has a lot of pages that contain internal links which redirect to external websites.
For example, the content of the page /hello
might contain a link to /redirect/123
which returns a 301
HTTP status code with a Location
header that points to an external website.
Now, Google has recently started to index tens of thousands of those redirect URLs. This is new though, Google didn't index them before. Any idea on how to fix it?
I previously tried to disallow the pages via robots.txt
but that didn't prevent Google from indexes the URLs and Google also doesn't recommend doing that.
I now added a X-Robots-Tag
header with the value noindex
to the redirects, should that work? Any other ideas?
[link] [comments]
from Search Engine Optimization: The Latest SEO News https://ift.tt/KDntae2
Comments
Post a Comment