How To Redirect 404 Error In Blogger To Homepage

A 404 error implies that the page you are looking is not found. It displays a message “Sorry the page you were looking for in this blog does not exist”. It happens when you have changed the URLs of some of your previous posts and the user tries to open that page with the old link or may be you deleted that post or page for some purpose. Also, sometimes it happens that the users enters a wrong URL so this kind of message will be shown to the visitor.

It does not matter whats the reason behind it but it will always a negative impression of your blog towards that user. So its became important for every blogger to send that visitor to a page where the visitor will find something to read and not leave your blog forever.

How To Redirect 404 Error In Blogger To Homepage

Here is a small tutorial to teach you how to redirect 404 error in blogger to homepage.

Redirect 404 Error (Page Not Found) To Homepage in Blogger

Step 1 : Open your blogger dashboard. Go to “Settings” and then click on “Search Preferences”.
How To Redirect 404 Error In Blogger To Homepage
Step 2 : Now click ‘Edit’ button in front of Custom Page Not Found.
Step 3 : Copy and paste the following code given below in that box.
             Sorry, the page you’re looking for in this blog does not exist.

You will be redirected to homepage shortly.
<script type = “text/javascript”>
BSPNF_redirect = setTimeout(function() {
location.pathname= “/
}, 5000); 

Step 4 :  Click on Save Changes and that’s it. You are done.


1. You can change the message written in bold according to your wish.
2. Also if you want to redirect to any other page instead of homepage. Just replace pathname to href and then write your link in place of ‘/’.
3. It will take 5 seconds to redirect to homepage. You can change this duration by changing the value 5000. Here 5000 means 5 seconds.

Add a Comment

Your email address will not be published. Required fields are marked *