Related-Content.g?q= 404 Error 's Solution in Blogger Blogs

Just after I published an article regarding the "related-content.g?q=" 404 error, a lot of webmasters have been asking questions about it both at the Google Webmaster forums and Blogger Help Forums to know if there was a solution.

Update: It looks like Blogger has finally taken action. They have disallowed the /related-content.g?q= in robots.txt file. So, it is no longer anything worth worrying about.

Some of them have even asked the same question by commenting on this blog. Despite knowing a solution, I did not tell them because of my reluctance and hope that Google would probably solve this error, which seems very unlikely (like most errors on Blogger).

The reason for my reluctance was that I was not sure if it was in agreement with Blogger's Terms of Service, violating which, will surely result in a blog being deleted.  I did not wish that Google deleted other people's blogs due to me. Today, I re-read the Terms of Service and came to know that they did not mention anything about this "hack". Although, it is in Google's discretion to change the terms any time to suit their needs, it is probably safe for now to remove the script causing the error. To remove the script, follow the steps given below.

How to remove the related-content.g?q= 404 Error

  1. Login to Blogger.
  2. Click on Design.
  3. Click on Edit HTML.
  4. Search for </head> in your template.
  5. After locating it paste the following code immediately after the </head>.
  6. <!-- <body><div></div>  -->
  7. Click on Save Template.
  8. An error message like the one given in the image might be shown
  9. related-content.g?q=
  10. Click on Delete Widgets.

What does this do?
This removes the Blogger NavBar widget which is the root cause of this 404 error. As the new script inserted to Blogger blogs is added in this widget, removing this would remove the JavaScript too and would thus stop our blogs from linking to non-existent 404 pages.

How long does it take to work?
Well, it depends on your blog's crawl rate. If your blog gets crawled quickly, Webmaster Tools might remove this error in a week. If that is not the case, it can take up to a month.

P.S: As an additional benefit, deleting the Navigation Bar widget will reduce the number of errors and warnings in your blog's HTML validation through W3C.

Author About

Akhilesh Sharma maintains and writes Tweak And Trick. He is a technology enthusiast and a science student.
You can contact him at tweakandtrick@gmail.com.

read more >>
Featured Posts