5 Secrets of Blogger (Service) You Don't Know

Recent Posts

How to Custom Redirects Blogger

Learn how to custom redirects Blogger 404 page.


Including an error 404 not found page to website or blog is highly recommended by search engine like Google, Bing, Yandex etc. Sometime 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 solve those two major problems there has a solution and it is redirecting URL of error page to another URL that must work and valid URL like homepage. Professional SEO experts and Blogger suggest redirecting to homepage.
How to Custom Error 404 Not Found Page and Redirect Blogger to Home
Demo

To redirect "error 404 not found page" to homepage in Blogger platform, follow the instructions:
  1. Go to Blogger
  2. Click 'Settings'→Search Preferences and choose "Errors and redirections" → "Custom Page Not Found?" 
  3. 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>

  • Save your setting and reload any error page.
  • You have created. 😃
    Customize: If you want to redirect to specific URL then put the url instead of 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.