How To Redirect 404 Error (Page Not Found) To Homepage In Blogger

how to redirect 404 error (page not found) to homepage in blogger
  
Today, I come with a very important tutorial is 404 page redirection, 404 error page tells user and search engines that a “page is not found". If anyone trying to access the page and suddenly appear “Page Not Found - 404” error. why does it occur? it's happens because you may have deleted your blog post or changed URLs. So in today’s tutorial I will tell you how to add/setup generic and custom blogger 404 redirection page in blogger.

Also Read: How To Add Custom Robots.txt File In Blogger/Blogspot

If you have deleted any blog post or changed blog post URLs and this time you have not setup 404 error page redirection in blogger then you will find your all 404 error pages in webmaster tools crawl section. 

You can redirect your blog visitors automatically to homepage within few seconds using blogger 404 page redirection, So let start the tutorial.

 

Redirect 404 Error Page using JavaScript in Blogger :

 

Step 1
Go to blogger dashboard >> Search "preferences” option under the “Settings” tab.

Step 2
Now click on custom page not found >> Edit option under the "Errors and redirections"

how to redirect 404 error (page not found) to homepage in blogger
Step 3
Copy the below code and paste in text box and click Save Changes.

Redirection JavaScript
<h1>Page Not Found!</h1>
<br><b>We're sorry but we could not find the page you are looking for.
This may happen if you have entered site URL incorrectly or this page doesn't exist anymore.</b>
<script type = "text/javascript">
BSPNF_redirect = setTimeout(function() {
location.pathname= "/"
}, 5000);
</script>
how to redirect 404 error (page not found) to homepage in blogger

 

Setup Custom 404 Error Page in Blogger :

 


Step 1
Go to blogger dashboard and create a new page with title Page not found!.

custom 404 error (page not found) page in blogger

Step 2
Now click on custom page not found >> Edit option under the "Errors and redirections"

custom 404 error (page not found) page in blogger

Step 3
Copy below redirection JavaScript and replace "/p/page-url.htm" with your page name and paste in text box and click Save Changes. .
<script type = "text/javascript">
setTimeout(function()
{
location.pathname= "/p/404-page.html "
},
5000);
</script>

custom 404 error (page not found) page in blogger

Final Words !


This was the today’s tutorial on how to redirect 404 error (page not found) to homepage in blogger and how to setup custom 404 error page in blogger.

If you have any quires regarding this tutorial then please feel free to ask with comment below this post.. And if you think my post was worth reading, then please don't forget to share it with your social media friends. Happy Blogging !

COMMENTS



Name

404 Alexa Alexa Ranking Backlink Blockquote Blogger Blogger Templates Blogger Tricks Blogger Tutorials Blogger Widgets Blogging Mistakes Blogging Tips CSS Download How To Image Optimization Infographics Internet Make Money Online Plagiarism Plagiarism Checker Privacy Policy redirection SEO SEO Tips Social Media Tools Traffic Tips WordPress YouTube
false
ltr
item
Shoutersclub : How To Redirect 404 Error (Page Not Found) To Homepage In Blogger
How To Redirect 404 Error (Page Not Found) To Homepage In Blogger
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGq3ghMPGmS1vIwj9m_xe2_4ybR4-oSd0-W8tG5UhfQ3kzP_LtWewZeCVKi1ECuQzJcgRFFFUjP5OKmokoICOm3DOaM1KiJ0Y0-1vAGDde1RDSttwX1I3tS4y0Z7kJUp1ifLfN94QhHSRu/s1600/404+redirection.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGq3ghMPGmS1vIwj9m_xe2_4ybR4-oSd0-W8tG5UhfQ3kzP_LtWewZeCVKi1ECuQzJcgRFFFUjP5OKmokoICOm3DOaM1KiJ0Y0-1vAGDde1RDSttwX1I3tS4y0Z7kJUp1ifLfN94QhHSRu/s72-c/404+redirection.jpg
Shoutersclub
https://shoutersclub.blogspot.com/2015/01/redirect-404-error-page-to-homepage-in-blogger.html
https://shoutersclub.blogspot.com/
https://shoutersclub.blogspot.com/
https://shoutersclub.blogspot.com/2015/01/redirect-404-error-page-to-homepage-in-blogger.html
true
8381117760632491081
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy