How to redirect Blogger 404 Error (Page Not Found) to Homepage

Hello and welcome to Getwebinfo.Com. Here on this post you can be able to find out that How to redirect Blogger 404 Error (Page Not Found) to Homepage. When a user goes to a nonexistent URL on your blog or website Blogger will display this error 404 (Page Not Found) message at the top of your blog post area "Sorry the page you were looking for in this blog does not exist"

Hmm this probably not the best first impression you'd want to give a potential reader. Before the user hits the Back button or closes the browser's window/tab and disappears forever, you might want to redirect the page to your homepage where the chances of him/her staying and read more articles that can will be post on to your blog or website.

One of the way to redirect is to use meta refresh but the problem with this method is it breaks navigation (it wont go back to the page you came from when you hit Back button). The better method is by using JavaScript and i think i have found the simplest way to do this on to my Blogger blog.

It is wise to include these two components in the redirection process:

  • Redirection message to inform that the page doesn't exist and the user is about to be redirected. Failure to do so will make the user feels cheated when the searched information is nowhere to be found on the landing page (homepage). Here's an example for you:

(" Sorry, the page you were looking for in this blog does not exist. You will be redirected to homepage shortly")

  • Tim delay - to provide sufficient time for the user to read the message prior to redirecting.

Based on the above example. this is how you add the new message and the redirect script to your blog.

Step 1: Go to Setting> Search preferences> Custom Page Not Found (Under Errors and Redirections).

Step 2: Click Edit and Paste this Code given below.

Sorry, the page you were looking for in this blog does not exist. You will be redirected to homepage shortly.
<script type = "text/javascript">
//Blogger 404 Redirect v1.0 by GreenLava(
BSPNF_redirect = setTimeout(function() {
location.pathname= "/"
}, 5000);
 You can paste it like that show in picture

(Note! you can change the red line with your own demand text)

  • The tops is the message. You are free to change it.
  • To redirect to a page/ Site other than your homepage, replace pathname with href, and / with the Url of the page or site.
  • The number 5000 is the delay in milliseconds. It's means your not page found message will be redirect on to your website home page in 5 seconds. you can change it to whatever value that you want to appropriate. Zero means immediate redirect.
Step 3: Now can save your Changes.

To check that your 404 Page work properly just type in address bar of your browser (

I hope you like this article and if you like this article so please share it on social media to support us. Thanks for visiting.

Hello and Welcome to Here on this site you can be able to find out Latest Articles are about Blogger, SEO, AdSense, WordPress,. You can also be able to find out Latest Tips that can you really need one. You can also Download Premium themes free from this site.