Blocking some types of links from search engines
-
Hi
Ever since I changed the webhost & moved my 2 sites both having a particular WordPress web directory plugin from http to https urls, a number of funny things have happened, especially to one of them. After months after the move, it’s just yesterday that one of the problems, apparently related to faulty 301 re-direct settings in some SSL plugin has been apparently resolved.
Anyway, the other problem is some urls related to tabbed content, that as much as I remember where never a problem before the http to https change in search engine results largely producing 500 server errors and I think I do not even need them indexed.
The affected links have to do with a regional web directory, with links in categories. More important is for a particular listings like site.com/directory/listing-x to be indexed. Each such listing optionally has additional info in tabs, like “related”, “nearby”, “reviews”, etc and have such a structure:- directory/listing/ethiopia-mission-geneva-ethiopian-embassy-switzerland?tab=nearby&view=list&category=0¢er=46.222492%2C6.130753&zoom=16&is_mile=0&directory_radius=100&p=1#sabai-inline-content-nearby
- directory/listing/sologistics-gmbh?tab=reviews&sort=random#sabai-inline-content-reviews
- directory/listing/united-states-embassy-algiers?tab=related&p=2&category=0&zoom=16&is_mile=0&directory_radius=0&view=list#sabai-inline-content-related, ….
etc, etc
It seems each possible listing like site.com/directory/listing/ethiopia-mission-geneva-ethiopian-embassy-switzerland has a huge number of links associated with the different tabs that get generated, for this alone tabs related to related, nearby, reviews, etc.
I do not remember this before the http => https change and they seem to be featuring too much in search results, instead of the simple listing urls. I did NOT change any settings during that change.Anyway, I want to avoid these 500 errors associated with them. I would like to request for some advice on how to do this (not a coder). I’m thinking of preventing tabbed content links (for lack of a better word) from being indexed, probably in robots.txt. Is this a good idea? I do not know where else to do so.
- I’m not a coder I must emphasize … Can this be done by blocking anything like “?tab=nearby”, “?tab=reviews”, “?tab=related” or just “?tab” … etc from being appended to any link like “site.com/directory/listing/ethiopia-mission-geneva-ethiopian-embassy-switzerland” being indexed, so links like those above, that are leading to countless crawl errors (500 internal server error) … in robots.txt do not get to search engines?
- If so, exactly what code do I add to robots.txt so any similar links related to those tabs above are not indexed and so do not appear in search results?
- What can be done to remove the hundreds if not thousands of similar, but useless links being removed from search engine results?
I would appreciate your precise guidance.
Kind regards
- The topic ‘Blocking some types of links from search engines’ is closed to new replies.