How to set Custom Redirect Error 404 in Blogger Blog - Satya Ki Pathshala

How to set Custom Redirect Error 404 in Blogger Blog: You might be wondering how to set up a custom 404 redirect in a blogger blog. Don't worry, here
How to set Custom Redirect Error 404 in Blogger Blog: You might be wondering how to set up a custom 404 redirect in a blogger blog. Don't worry, here I have come up with this solution. When a user mistakenly types your blog address in the URL then the blogger shows Error 404 page not found. For this reason, the user leaves your blog and moves to another blog.

How to set Custom Redirect Error 404 in Blogger Blog - Satya Ki Pathshala

In today's article, I am going to tell you the method that how a visitor is redirected to your blog after mistakenly typing your blog address. The blogger has that option. The point is you don't know that. So, let me do this for you.

A lot of bloggers try hard to gain more traffic on their blogs and underestimate this important step. Because of this reason, your old visitors could not find your blog and your traffic goes down 👎.

How to set Custom Redirect Error 404 in Blogger Blog

Option 1. Insert Meta Tag

  • Open your Blogger Dashboard and Click on Edit HTML, you will find your theme code there.
  • Now find the <head> tag by pressing CTRL+F.
  • Now copy the following code and paste this under the <head> tag.

<b:if cond='data:blog.pageType == "error_page"'>
Oops! Page does not exist. We are redirecting you to home page.
<meta content='5;URL=https://www.satyakipathshala.in' http-equiv='refresh'/>
</b:if>

  • Don't forget to change the name "www.satyakipathshala.in" to your blog address.
  • After that, save the theme.

Option 2. By using JavaScript

  • Go to your Blogger Dashboard
  • Click on the "Settings" menu
  • Find "Errors and redirects"

  • Click on "Custom 404".
  • Now paste the following code there.

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 (makingdifferent.com)
BSPNF_redirect = setTimeout(function() {
location.pathname= "https://www.satyakipathshala.in/"
}, 5000);
</script>

  • Now click on the save button to save the code.

Now to check if your custom URL is working or not, you can copy the link of any post and paste this URL into the browser by removing any digit or letter from that link. Let me know in the comment section if it works for you or not.

To know more about blogging, simply bookmark this blog and visit regularly to get more interesting stuff. Thanks for reading this article.