Auto Redirect Custom Error 404 Page to Blogger Home Page?

Auto Redirect Custom Error 404 Page to Blogger Home Page?

blogger tricks

Blogger Template contains many features to make it user friendly. There are many  small but important feature helps to keep engaged visitors with Blog site. For example Related Posts, Random posts. But due unavailability or absents of contents Blog page always shows Error 404 message, that means the content is no more exists or deleted by author. There are many Blogger design their blog by  custom Error 404 page to stay readers with Blog.

Many Advance user use Blog's Custom redirect from Blogger Search preference option but this system may not be easy for newbie. And many Blogger template hasn't any custom error 404 page.

Live Demo

But Those who are not using custom error 404 page then they can use a simple piece of code which will help the Blog or website to auto redirect from Error 404 page to Blog home page within 5 seconds. And this will help the readers to view the all latest post on Blog home page if viewers don't feel interested to navigate in Home page.

To add this feature just follow the below steps-

Step 1 Log in to your Blogger Account and Go to your Blogger Dashboard

Step 2 Click on  Now click on -> Template -> Edit HTML->

Step 3
 Now find the <head> by pressing Ctrl+F (Windows) or CMD+F (Mac)  

Step 4 Copy the script from below and Paste it after/below <head> 

<b:if cond='data:blog.pageType == &quot;error_page&quot;'>
<title>Page Not Found - <data:blog.title/></title>
<meta content='5;/' http-equiv='refresh'/>


  • Here'5;/' means after 5 second Error page will redirect to Blogger Home page.  Please alter only 5 with greater or lesser number for redirect time.
Step 5 Finally hit the Save template button.

Now you can check your Blog with URL with and see instantly Error 404 page redirecting to your Blog home page. 

Post a Comment

ভাই অনেক সুন্দর হয়েছে।

Thanks. Amar design kora template a aai feature set kora ace. Tai noton kore add korte Hobe na.

অনেক ধন্যবাদ ভাইয়া।
এইজন্যই আপনার ব্লগ এত্তো ভালো লাগে...

Thanks for your Feedback :-bd

Assalamu Alaikum Muhammad Fazle Rabbi Bro.
Thanks a lot for this amazing post.
It helps me a lot on my Islamic Blog.

Nice to hear that.. keep it up... ;)

Facebook Group Community Code ConverterHide Code Converter Show EmoticonHide Emoticon

Got questions? Ask ’em below! While we’re here, you might like to give any feedback about this Post, Your comment inspire us to continuous Improvement of This Blog and Contents. Your words are your own, so be nice and helpful if you can. Please, only use your REAL NAME, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.

Make sure you tick the Notify Me box below the comment form to be notified of follow up comments and replies. Thank you for commenting

Contact Form


Email *

Message *