Top Ad unit 728 × 90

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

In this article I am going to share with you a blogging tip that how to Redirect 404 Error (Page Not Found) to Homepage in Blogger. The Error 404 “Page not found” is a page that tells you, visitors and search engines by displaying some text similar to this dialogue “Sorry, the page you were looking for this site or blog does not exist”. And according to me it may occur due to removing pages or changing URL addresses of the posts. In simple words whenever you repairs your blog structure then broken links being exist and this problem exist and your visitors automatically redirects to the error page in blogspot blogs. So in this post I have written a best solution to my readers to avoid from this kind of issue. If you still did not understand then read below that why does it appear?

Why Does 404 Error in blogger appear?

  • When you Remove Specific Pages from your blog
  • It may happen due to rename or change URLs of posts
  • Whenever a user accidently write and go for  a wrong url address that does’t exist on you site
  • When Moving and redesigning your website
  • This issue exists due to Broken links
redirect 404 Error to blogger

How to Redirect 404 Error Page using JavaScript in Blogspot

1. Login to your Blogger Dashboard >> Settings >> Search Preferences >> Custom page Not Found


blogger 404 error

2. Now copy the below set of code and paste it in the empty box

Apology for the inconvenience, the page you are looking for has no existence. You will be redirecting to homepage shortly.<script type = "text/javascript">
//Blogger 404 Redirect Powered by BloggerCell.com
BSPNF_redirect = setTimeout(function() {
location.pathname= "/"
}, 2000);
</script>

Now the dialogue message which was going to display can be adjusted as your wish. If you are eager to redirect 404 error page to another page other than homepage, then just change pathname with href and / with the url address of the post where you want to switch. The number 2000 (2 second) basically expressed in milliseconds and you can change it to other valid values as you want i.e. if you alter it from 2000 to 3000 then it will take 3 seconds.
After entering the code the next step is to save all settings by simply clicking on “Save changes” tab button. You can verify the changes that you have recently made by entering the custom texts after your website domain name. Then you will see an automatically redirecting just after 1 second.

Last Words

I write this step by step tutorial in easy words for automatically redirect 404 error to homepage in blogger or the custom path or the another post where you want to alter. I always want to share quality tips and tutorials with easiest methods so that you may better understand it and get benefit from it. If my post’s content helps you a bit then does not forget to share all useful posts with your friends.
Redirect 404 Error (Page Not Found) to Homepage in Blogger Reviewed by Tariq Rafique on 5:37 am Rating: 5

2 comments:

  1. Than your for sharing this with us. I used in on my Blogger website pertains to SSC-Staff Selection Commission and it is working nicely. Thank you very much for the Information provided by you

    ReplyDelete

All Rights Reserved. www.BloggerCell.com © 2014-2015
Follow my blog with Bloglovin - Do not reproduce any article without author's permission.

Contact Form

Name

Email *

Message *

Powered by Blogger.