Latest Posts




Whenever a person lands on a web page that is either deleted or has no existence Blogger blogs usually display its common 404 not found error message i.e. “Sorry for the inconvenience, the page you are looking for has no existence”. First impression counts more than anything. A person would never desire to display not found error pages to his new visitors. Therefore, it is essential to redirect all 404 not found pages to the home page so users can easily get access to the content that is waiting for them. Since, Blogger do not support PHP, so we have to make use of JavaScript that does the job pretty nicely. Therefore, today in this article, we will learn How to Redirect All 404 Not Found Pages to Homepage in Blogger.

Before, we get on with our tutorial. Let us first discuss the true definition of not found pages. Most of the webmasters would be well aware of it but some beginners might get confused. Consider the following meaningful definition:

404 Pages: The 404 not found error message is a form of standard HTTP response code, which indicates the client that the destination which he is looking for, is unable to interact with the server or has no existence.
301 Permanent Redirects:  URL redirection, also known as URL redirecting is a technique that allows a webmaster to forward his one domain to another domain through URL redirection, or making different web page available under many URLs
The Solution:
The solution is pretty much straightforward because there is no rocket science behind this technique. A small chuck of JavaScript coding would be doing the entire job. Consider the following instructions and apply them as mentioned below.

Go To Blogger >> Settings >> Search Preference. Now from the list of functions Select Custom Not Found Page and paste the following JavaScript coding in the HTML Box. If some folks are using custom 404 error message, than they can add the following code at the end of the coding.


Sorry for the inconvenience, the page you are looking for has no existence.<script type = "text/javascript">
//Blogger 404 Redirect Powered by MyBloggerLab
BSPNF_redirect = setTimeout(function() {
location.pathname= "/"
}, 1000);
</script> 



1000 is the delay time in microseconds. Anyone can change it. Changing the value to Zero (0) would redirect immediately without any delay.
Save it and that’s it. Now whenever a visitor would hit a 404 page, it would automatically redirect him to your homepage. Note: This technique should be used only if lots of your indexed posts are deleted and they are getting high SERP ranking.  

0 comments:

Post a Comment

 
Technical Tutorials,Tips and Tricks And Premium Accounts © 2013. All Rights Reserved. Powered by Blogger
Top