Monday, October 21, 2013

Automatically Redirect Blogger 404 Error (Page Not Found) to Homepage

Author: Gagan Masoun
Redirect Blogger 404 Error Page404 error page (Page Not Found) is a branch of site and blogs. If your blog is a user friendly then it is important to keep your blog error free. i.e: "Blogger 404 Error Pages". 404 error pages are automatically created when you remove blog post or when you change the post slugs thus its old post URL simply returns a error page. Today in this unique article I will show you how you can redirect 404 error pages of your blogger blog to homepage. Try this script it will help you to keep your visitors alive.

How To Redirect Blogger 404 Error Page in Blogger

  • Go to your Blogger Dashboard » Settings » Search Preferences » Custom Page Not Found (Click On Edit Option)
  • Copy and Paste The Following Code & Click on Save Changes.

Sorry, the page you were looking for in this blog does not exist. Please wait for a moment you will be redirect to the homepage shortly.
<script type = "text/javascript">
//Blogger 404 Redirect v1.0 by DDr(Mybloggertricks.org)
JN_redirect = setTimeout(function() {
location.pathname= "/"
}, 5000);
</script>

Customization

  • You can edit a message as you want (i.e. Sorry, the page you were looking for in this blog does not exist. Please wait for a moment you will be redirect to the homepage shortly.).
  • If you are willing to redirect your blog 404 error page to specific page other than your home page, just replace pathname to href and / to the URL of the page.
Congratulations! Its all done. If you need any type of help or suggestion then leave your comments below. Thanks & Stay Blessed :)

0 comments:

Post a Comment