
Redirect Blogger 404 Error Page to Homepage
Following are the few simplest step which you need to follow step by step. We are going to install JavaScript that will redirect our blog to home page. this JavaScript will going to appear only on error page, so it will work only when some one reach to your blog through broken link.
- Go to blogger Account.
- Select your blog in which you want to use this tricks.
- Now Navigate Blogger Dashboard > Setting > Search Preferences > click on edit button of “Custom Page Not Found” and there copy and paste following code inside that field.
Sorry, the page you were 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>
- Click on Save Change. That Set.
If you are facing any kind of difficulties or having and query related to this post that feel free to drop your comment below, we love it a lot. We will try to respond your questions as soon as possible.
Thanks, But I notice, that You do not use this method of 404-page. Why? May be now is a better construction (design etc.) of 404-page?
Actually I have migrated my blogger blog to wordpress, WordPress theme having it’s own 404 page with full facilities. So I have not implemented above blogger tricks to wordpress.
In any case, this code is not working for archives.
It’s all about how your blogger template is formed. If code is missing on your archive page that that code will not appear on that page. It mean you want be redirected to destination url.