Redirect From Page Not Found to Home Page

404 Page Not Found : A Page not found, also known as a 404 error page, is typically displayed when we click on a non-existing page link. If a page on your Blogger blog is deleted, the link to that page will become a broken link, which leads to a non-existing page.

Even after deleting a post from your Blogger blog, that post's link will still appear on search engines until your blog is properly updated by search engines. If someone clicks on that broken link to your blog post, it will display a 404 page not found message. Seeing a 404 page not found message can disappoint blog visitors, leading them to close your blog immediately.

What are the problems with 404 error page ( Page Not Found) :

  • Poor user experience
  • Lost traffic and revenue
  • Negative impact on SEO
  • Decreased credibility

What is the solution to 404 error ( Page Not Found) :

The best solution to the 404 page not found error is redirection. Redirecting from the page not found to the homepage is the best solution for a 404 page not found error. In this post, I am going to show you how to fix the 404 error (page not found) on your Blogger blog.

How to redirect from 404 page not found to homepage on Blogger :

Setting up a redirection on your Blogger blog is easy and can help solve the issue of the 404 error page not found. One solution is to redirect the 404 error page to the Blogger homepage. Blogger provides a custom page not found option for this purpose. By using this option, you can set up a redirection. Another way to redirect a 404 error page to the homepage is by using a simple script code.

Follow below steps to redirect from 404 error (page not found) page to homepage in Blogger blog:


Step 1: Go to Blogger

Step 2: Go to Settings and click on Search Preferences

Step 3: Click on Edit next to Custom Page Not Found ( under Errors and redirection)

Step 4: Now paste below code in the Custom Page Not Found box.

Sorry, the page you were looking for in this blog does not exist. You will be redirected to homepage now. <script type = "text/javascript"> //Blogger 404 Redirecction
 BSPNF_redirect = setTimeout(function() { location.pathname= "/" }, 5000); </script>

Step 5: Click on Save .

Now, check whether it is working or not by clicking on a non-existing link of your blog. This way, you can add a custom message to the 404 page not found error page and redirect that error page to the homepage.

No comments:

Post a Comment