Saturday, February 25, 2017

How to Redirect 404 Page Not Found in Blogger

Last Update:

Recommended Cloud & Hosting: Cloudways, Hostinger & BlueHost
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 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 the 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 the 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 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.

    About me


    Elliyas Ahmed
    Elliyas Ahmed

    Hi, I am Elliyas Ahmed, the founder of ComProMath. I try to share what I learn.

    Work With Me - SEO Expert, WordPress, Blogger Theme Developer on Fiverr

    Lets Disucss on this Article

    Don't try SPAMMING here! Submit your Feedback, Questions or Comment related to this Article. Read our Comment Policy.