Header Ads

How To Redirect Blogger 404 Error Page To Homepage

When a reader comes to your blog and  doesn't find the post he or she was looking for. Then the 404 error normally appears and a text "Sorry, the page you were looking for in this blog doesn't  exist.". This can be very annoying and can lead to a great loss especially a loyal blog reader. Because only few readers will think of going to the home page or use search bar to search that specific article on your blog. Most of the readers will close the window and go back again to main search results.

To avoid loosing loyal readers due this small error,  you can redirect the link to point to any other existing article that might offer the same or information that is somehow related to it.  There are two ways to do a redirect, one is by adding java script and another one is by using a meta refresh. Adding java script seems to be the best method but sometimes it might end up slowing the load speed on your blog.

There is another way of redirecting all your error 404 messages to the home page but you don't wanna do this because your readers are looking for the specific article and not your home page. Therefore we will stick to using java script, here is how to do it.

Sign in to your blogger account, select your specific blog and go to Settings - Search preference - Custom page not found  click edit and paste the following code.



Sorry, the page you were looking for in this blog does not exist. You will be redirected to homepage shortly.
<script type = "text/javascript">
//Blogger 404 Redirect v1.0 by GreenLava(BloggerSentral.com)
BSPNF_redirect = setTimeout(function() {
location.pathname= "/"
}, 5000); 
</script>


The above method will redirect to your home page. to redirect to a specific page change the pathname to href and add the link on the /


If you face any challenges doing this please feel free to drop them in the comments.




No comments:

Powered by Blogger.