Redirect 404 error page to homepage in Blogger

Here, you can learn How to redirect 404 Error page to Homepage in Blogger Blog easily with step by step guide.

Redirect 404 error page to homepage in Blogger


What is 404 Error Page : A 404 Error page is nothing but an indication to your visitors that the information you are looking for on a particular website / blog, is no longer available. There can be many reasons for 404 Error Page such as:
  1. Page may be removed by the Admin
  2. Page is renamed with new URL
  3. Page is deleted because of copyright infringement
  4. There is typing error while searching for the page.  
Whatever the reason may be, it is not a pleasant moment for a visitor while he visits the page and he found this message :
Sorry. The page you are looking for in this blog does not exist. 
However, there may be variation in the acceptance of 404 page. Some blogger says it is bad for SEO while some says, nothing to worry about 404 pages. It is although more important from the point of view of a site visitor.

There are various method to check 404 Error pages in a website / blog. One of the easiest method is to visit the webmaster tool provided by Google. You must have added your website / blog before you try to access the Webmaster Tool portal mentioned above.

How to Redirect 404 Error Page to Homepage in Blogger


To redirect 404 page to homepage, you need to do a very simple trick. Please visit the Blogger dashboard. Click on Search Preferences on the settings link.

After that, Under Errors and redirections, please Click on Custom Page Not Found. You can see a blank box there. 

Copy the below given script and paste this code into that box. 


<h1>Oops 404!</h1>
<br><b>The page you are looking for may have been renamed or does not exist on this website.</b>
<br><br><b>You will be redirected to homepage shortly.</b>
<script>
blogger_redirect = setTimeout(function() { location.pathname= "/" }, 7000);
</script>    
Note : You can edit the code above as per your suitability. If you wish to change the text message, please edit RED line. If you want your visitors to be redirected after a bit longer or shorter time, please change GREEN value.

Click Save Changes and Exit to the dashboard. 

Now, Preview any 404 Error page. You will be redirected to the homepage within a few seconds.

I hope this article may help you to learn How to Redirect 404 Error Page to Homepage in Blogger.

Comments