redirect from page not found to home page

404 Page Not Found : Page not found also called as 404 error page. Generally we can get 404 page not found message when we click on non-existing page link. If any of your Blogger blog page deleted by you then that page link will not available on your blog, is it's said to be broken link also called as non-existing page link.

Even after deleting a post from your Blogger blog, that post link will display on search engines up to your blog updated by search engines properly. So if any one click on that broken link of your blog post then it will show 404 page not found message. If they saw 404 page not found message, they will try to close your blog immediately. 404 page not found disappoints blog visitors.

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


It gives bad user experience.

Bounce rate will increase.

Your blog page views will decrease.

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


The best solution to the 404 page not found error is redirection. Redirecting from page not found to home page is the best solution to 404 page not fund. In this post I'm going to show you how to fix 404 error ( page not found) on Blogger blog.

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

It is easy to set redirection on your Blogger blog. We can solve 404 error by redirecting that 404 error page to Blogger home page. Blogger contains custom page not found option. Through that option you can set redirection. With simple script code you can redirect 404 error page to home page.

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 click on non-existing link of your blog. Like this you can add custom message to 404 page not found error page and redirect that error page to homepage.

No comments:

Post a Comment