: How can I stop Google from indexing "pretty links" external redirects from my WordPress site? When I search site:[example].com in Google for my blog, the majority of the pages that are being
When I search site:[example].com in Google for my blog, the majority of the pages that are being indexed are "pretty links" to external sites.
I created these links using the Pretty Links plugin so that I can make links to external sites look nice and clean, and also so I can track how many people click through to those sites from my blog.
But many of them were created before I understood anything about follow/no follow links. As I've learned more, I realised this isn't ideal and have gone and changed each of these links to "no follow" , but this hasn't stopped then from being indexed by Google.
How can I stop these links from being index?
More posts by @BetL925
2 Comments
Sorted by latest first Latest Oldest Best
Add
<meta name="robots" content="noindex,nofollow"/>
<meta name="googlebot" content="noindex,nofollow,noarchive,unavailable_after:[date]"/>
at the head of pages you want to exclude from Google search, where [date] should be a date in the past to tell Googlebot that the page should no longer be available at present.
Google doesn't index links, it indexes pages.
It seems that the pages that these pretty links point to like example.org/clickout/5 don't have a proper robots setting or http status code to let Google know that you don't want these pages in the index.
Have you tried the following?
Add a meta robots noindex to the intermediate clickout pages? This will stop Google from indexing the intermediate clickout pages.
Switch to non-pretty external links that are tracked using Javascript click events (for instance using Google Analytics?)
Use a tool like httpstatus.io/ to check the http status codes that the intermediate page is returning. As Stephen noted, if these are 301 it's unlikely that these clickout pages will get indexed themselves.
[Edit] Removed suggestion to block the intermediate URLs in robots.txt, added suggestion to check http status code.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.