How to auto redirect Not Found Page or Error Page to Homepage orSome Other Pages in Blogger/ Blogspot?
When any visitor or reader comes to your blog and unexpectedly sees Page not found message like: “Sorry, the page you were looking for in this blog does not exist.” by default. This may lead to loss of visitors to your blog. Because only a few readers will think to move at home page or use the search bar to search that particular content on your blog. I am sure many of readers will close the window and move again to some other search results.
So we make use of blogger condition tags and meta redirection tags to redirect visitors to some other useful pages with contents, so that they can navigate and go to desired pages.
For that click on Theme link on blogger dashboard, then click dropdown icon at right side of Customize button, then click Edit HTML.
<b:if cond='data:blog.pageType == "error_page"'>
<meta content='5;URL=http://your-blog-url' http-equiv='refresh'/>
</b:if>
Put above code in head section of your blog by editing your blogger theme Html anywhere between <head> </head> tag.
Now replace http://your-blog-url in above code with your blog homepage url or any desired page link.
5 in above code refers to waiting time (seconds) before redirect.
Now Save Your Template, and you are done.
Happy Blogging!
No comments:
Post a Comment