When you have changed your URLs over
time or some times when you have removed few pages to make better your design
then the search engines tells you about a "404
error page" and tells you about that he page you are searching does
not exist or is not found. It may also happens when the readers misspelled any
word or URL existed in your blog then it redirects you automatically to the "404 error page" and says
"Sorry, the page you were looking for in this blog does not exist."
it makes very bad impression on readers and visitors and the visitors can leave
our site forever. Refresh page can resolve the issue but it also has a problem
that when we make refresh, it breaks the navigation or it does not allows
return. So to resolve this issue permanently so that visitors can continue reading
and will not leave our page forever, I am introducing a very much important and
easy blogger tutorial on "404 error
page". The blogger tips and tricks on "404 error page" are very simple and completely JavaScript
based.
How to redirect blogger
404 error with JavaScript?
|
STEP 1:
Now click on Search preferences and now go to Custom page not found
STEP 2:
Here in the Custom page not found box copy and paste the
below given link as
Sorry, the page you are 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>
Customization
|
You can customize your settings as:
- 1- To change the custom massage to be displayed, just change the yellow coloured message.
- 2- To redirect your 404 error page other than home page, just change the pathname to href and “/” with your page URL.
- 3- To change the page delay time in milliseconds, replace the value in 5000 to your desired redirect delay time.
Test
|
Now to test your settings just add
custom text to your blog URL and click enter. You should see the error page followed
by the redirection after 5 seconds. That’s it. You have done all.
Special Words by Admin
|
If you have any problem with “Redirect blogger 404 error with JavaScript” than just cotact me by commenting below. I hope and 100% satisfied with my blogger tutorial that this is very much easy and working.
Comment Policy : We are pleased to see your comment here. However, Please Keep in mind that all comments are moderated manually by humans according to our comment policy all. Using Keywords in the name field area is forbidden. Let’s enjoy a personal and meaningful conversation.