Monday, July 14, 2014

How to Fix 404 Error (Page not Found) in Blogger

When any page of a blog is not found then you will get 404 error message. This may happens if you have changed post or page URL over times or if you have removed it and if any visitor tries to enter your site by misspelling URL. As a result visitors automatically redirect to the 404 error page. Normally a 404 error page contains a message similar to it "Sorry this page you were looking for in this blog does not exist".


And this 404 error page create negative impression to visitors of a blog. If visitor get 404 error message instead of of their anticipated post than they can leave your blog with negative idea. But if you redirect your blogger 404 error page to a live page then there may be a chance, that the visitors will continue to read your blog.

Fix Blogger 404 Error page

There are several way to fix 404 error in blogger. But using a simple Javascript code you can easily fix Blogger 404 error problem. When you will implement this Javascript code on your blog then your visitors will be redirected to your blog homepage.

Redirecting Blogger 404 Error Page to Homepage:
  1. First Log Into your Blogger Account and got to Dashboard.
  2. Now click Settings and then click on Search Preference.
  3. Than click on Edit of Custom Page Not Found option.

    blogger search preferences

  4. Now Copy the below code and Paste it in the empty box.

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

  6. Then click Save Changes button to apply it.
Customization: If you want to redirect 404 error page to any other page than just Replace pathname with that page URL.


That's it. From now your visitor will be redirected from 404 error page to your anticipated page.


Stay with www.iTTimesbd.com for more IT related Post

No comments:

Post a Comment