If Page to Found Redirect Reader to the Homepage
Before you lose an opportunity to make a new reader for the blog you should redirect to a reader to the homepage when comes to a nonexisting page or post of your blog. There are already few solutions available for redirecting a user to the main page or home page, one the method is JavaScript and other is meta refresh/redirection. I personally do not like adding more JavaScript to blog because it slows down the blog and reduces the blog performance. So for auto-redirecting Blogger Page not found (Error 404) page to the homepage, I am using meta refresh tag because it will load in the template only when any reader reaches to a non-existing page or error 404 occurs and does not reduce the blog performance.
This code has 3 parts –
1. Blogger error pageType tag
2. Meta refresh/ redirection tag
3. Custom error 404/ page not found message
Now a complete code of error page is: Note: You must change http://your-blog-url with your blog URL.
How use this code in Blogger template?
Note: You must change your-blog-URL with your blog URL. Happy Blogging! :)