How to redirect Blogger Error 404 (Page Not Found)





Unknown | 7:08 PM | 0 Comments


When a user goes to non-existent URL to your blog, Blogger will show this error 404 (page not found) message at the top of your blog in:
"Sorry, the page you are looking for in this blog does not exist."
Hmm ... may not be the best first impression you want to give a potential reader. Before the user presses the back button or close the browser window / tab, and disappears forever, you'll want to steer the page your home page (or a page on your choice), where the possibilities of his / her stay in and read a (presumably) a lot more.

One of the ways to control is to use meta refresh, but the problem with this method is in breach of the navigation (it will tend to return to the page you came from when you hit the back button). Better method is to use Javascript, and I think I have found the simplest way to do this in Blogger.
It is wise to include these two components of the redirect process:

* Redirect message - indicates that the page does not exist, and the user is about to controlled. Otherwise, the user will feel ripped off when searching for information about anything can be found in the home page (home page). In this example:
"Sorry, the page you are looking for in this blog does not have. You will be redirected home soon."
Delay - allow sufficient time for the user to read the message before redirecting.
Based on the above example, this way you create a new message and the control script on your blog:

1.Go to Settings> Search Settings> Custom Page Not Found (less errors and redirect).

2.Select Edit and paste this:


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


*The upper part is the message. Feel free to change it.

*You can control the page / site other than the home page, change the path of the href, and / with the URL of the page / site.
*Number 5000 is the delay in milliseconds. You can change the value of whatever you think appropriate. Zero means an immediate redirect (no delay).

3.Click Save Changes. You can test it simply makes no URL does not exist on your domain / sub-domain (eg http://banglanet.blogspot.com/dfsfgd) and see if the new Page Not Found is displayed, the redirect after 5 seconds. If you find any bugs / side effects, please tell us in the comments.

Enjoy!






By Unknown
I am a professional Graphic designer and web site designer.I always try to make my byers Happy with my work and my activities. See My portfolio.....







Stay Connected With Us
Feed Icon Twitter Icon Facebook Icon Google+ Icon Youtube Icon


Share and Spread Share On Facebook +1 This Post Digg This Post Stumble This Post Tweet This Post Tweet This Post Tweet This Post Save Tis Post To Delicious Share On Reddit Bookmark On Technorati


Related Articles

JOIN THE DISCUSSION

Any feedback, questions or ideas are always welcome. In case you are posting Code ,then first escape it using Postify and then paste it in the comments

0 comments: