Pages

Saturday, October 11, 2014

How to redirect 404 Error pages to your homepage in Blogger

404 error pages (Not Found Errors) are pages on your blog that doesn't exist. If you have deleted some pages or posts of your blog, then your blog visitors will find 404 errors when browsing deleted pages or posts. It is not good for blog visitors, they may feel it is a low quality blog. So blogger gives us the facility to display whatever we want on these error pages.  In this post I will show you how 404 error pages will automatically redirect towards the homepage.


Steps to redirect 404 Error pages to your homepage


Sign in to your Blogger account. Go to your blogger dashboard.

Now click on Settings --> Search preferences --> click on Edit



Paste the following piece of code in the box.

<script type = "text/javascript">
window.location="http://www.yourwebsite.com";
</script>





Click on Save changes and you are done.

Now whenever your blog visitors will enter a wrong URL or tries to access a broken link, they will be automatically redirected to the homepage.

No comments:

Post a Comment