How to Redirect 404 Not Found Page on Home Page in Blogger

If you want to redirect the 404 page on the home page or somebody type wrong URL with your domain name then redirects automatically on the home page after the sort while in blogger then you have to do the following setting in your blogger. Just follow the step below and apply on your blog.

custom page not found redirection code in blogger


1. Go to Blogger Dashboard.
2. Go Setting menu
3. Go to Search Preference Setting option
4. Click on the Custom page Not Found button. (See in Image)



Set Custom 404 error code redirection on home page in Blogger


5. Now Copy and paste the following code in the box and save it.

<h1>Please Wait</h1>

<br><b>The page you are looking for may have been renamed or does not exist in this server.</b>

<br><br><b>You will be redirected to homepage shortly.</b>

<script>

blogger_redirect = setTimeout(function() { location.pathname= "/" }, 7000);

</script>


Now you have done the redirection if somebody types the wrong URL in your browser.  You can try it.

You might like to read - How to Setup Custom Domain for Blogger site with Godaddy Domain Name

No comments:

Related Posts Plugin for WordPress, Blogger...