How to Redirect 404 Page Not Found in Blogger
It is very easy to redirect 404 page not found in Blogger. Including an error 404 not found the page to website or blog is highly recommended by the search engine like Google, Bing, Yandex etc. Sometimes website or page may have URL that not working, undefined and search engine can not crawl. For that reason, it effects to reduce attention of visitors to your website or blog and show crawl error.
To redirect "error 404 not found page" to the homepage in Blogger platform, follow the instructions:
- Go to Blogger
- Click 'Settings'→Search Preferences and choose "Errors and redirections" → "Custom Page Not Found?"
- Edit to Set Custom page not found and paste the following code.
Sorry! The page you are looking for in this Website or blog does not exist.
You will be redirected to homepage now. Thank you.
<script type="text/javascript">
PNF_redirect = setTimeout(function() {
location.pathname = "/"
}, 4000);
</script>
You have created. 😃
Customize: If you want to redirect to specific URL then put the URL instead of the slash (/) in the script code.
Example: location.pathname = "/p/contact-us.html" will redirect to 'Contact Us' page instead of homepage.If you want to customize time duration to stay error page, replace 4000 with your selected value.
Have got this article helpful or not working? Put your comment below.