How to redirect 404 Error (Page Not Found) to homepage in Blogger

When a user lands to a nonexistent or deleted URL on your blog, Blogger will display this Error 404 (Page Not Found) i.e. â€œSorry for the inconvenience, the page you are looking for has no existenceâ€. This may be a shot of loosing a blog reader. In light of the fact that just not many users will think to move at home page or use search bar to inquiry that specific content on your blog. I am sure many of reader will leave your blog and move again to their search items. Before you loose your new reader for your blog you should redirect to a reader to homepage (or any post page) when comes to a deleted or nonexistent page or post of your blog. so, there is 2 ways to we can redirect 404 page to homepage. one of the way to redirect is to use meta refresh and second method is by using JavaScript. so, personally i don’t like to add JavaScript because it’s effect to blogger loading time. that’s why I’m not recommended you to use JavaScript method for it. but here i show you both method you can use one method as you preferred form it. (meta tag refresh – recommended)

Method : 1 Meta Tag Refresh ( Recommended )

<b:if cond='data:blog.pageType == &quot;error_page&quot;'>
Oops! Page does not exist. We are redirecting you to home page.
<meta content='5;URL=http://www.your-blog-url.com' http-equiv='refresh'/>
</b:if>

Hello friends, let me take the privilege or introducing myself to you. I am Nitin Maheta from a small place called Rajkot. My urge to know more and more have leaded me to the growing areas of technology. By profession, I work in a garment s... see more