How to add Redirect 404 Not Found Page to the Home Page in Blogger

How to add automotive redirect 404 Not Found Page to the Home Page with  Blogger setting for broken links by javascript code


Whenever someone goes on a web page that is either deleted or has no existence Blogger website usually displays its common 404 not found error message for broken links with simple Javascript code. “Sorry for the inconvenience, the page you are looking for has no existence”. The first impression counts more than anything. A person would never desire to display not-found error pages to his new visitors. Therefore, it is essential to redirect all 404 not found pages to the home page URL so users can easily get access to the content that is waiting for them. 
So we learn how to use this simple JavaScript code which does the job pretty nicely. 

How to add automotive redirect 404 Not Found Page to the Home Page with  Blogger setting for broken links by javascript code  Whenever a person lands on a web page that is either deleted or has no existence Blogger blogs usually display its common 404 not found error message for broken links. “Sorry for the inconvenience, the page you are looking for has no existence”. The first impression counts more than anything. A person would never desire to display not-found error pages to his new visitors. Therefore, it is essential to redirect all 404 not found pages to the home page URL so users can easily get access to the content that is waiting for them. Since Blogger does not support PHP, so we have to make use of JavaScript which does the job pretty nicely. Therefore, today in this article, we will learn How to Redirect All 404 Not Found Pages to the Homepage in Blogger.  How to add Redirect 404 Not Found Page to the Home Page in Blogger    Before, we get on with our tutorial. Let us first discuss the true definition of not-found pages. Most of the webmasters would be well aware of it but some beginners might get confused. Consider the following meaningful definition:  404 Pages: The 404 not found error message is a form of standard HTTP response code, which indicates to the client that the destination which he is looking for, is unable to interact with the server or has no existence.   301 Permanent Redirects:  URL redirection, also known as URL redirecting is a technique that allows a webmaster to forward his one domain to another domain through URL redirection, or making different web pages available under many URLs  Solution:  Log in to Blogger: Access your Blogger dashboard using your Google account credentials.  Navigate to Settings:  Locate the "Settings" option in the Blogger interface. This might be found in a sidebar menu or similar location depending on the layout. Find "Errors and Redirects": Look for a section titled "Errors and Redirects" within the settings. Access "Custom 404": Within "Errors and Redirects," you should find an option labeled "Custom 404" or similar. Click on it to edit the custom 404 page settings.  Paste the Redirect Code:   Here, you'll need to paste a code snippet that facilitates the redirect. You can find this code by searching online for "Blogger 404 redirect code." Here's a general idea of the code structure:  Sorry for the inconvenience, the page you are looking for has no existence.<script type = "text/javascript"> //Blogger 404 Redirect Powered by Blogger Coding Tips BSPNF_redirect = setTimeout(function() { location.pathname= "/" }, 1000); </script>
How to add Redirect 404 Not Found Page to the Home Page in Blogger


first, you must learn two main about redirect page messages


404 Pages: The 404 not found error message of Blogspot.com is a form of standard HTTP response code, which indicates to the client that the destination which he is looking for, is unable to interact with the server or has no existence. 

301 Permanent Redirects:  URL redirection, also known as URL redirecting is a technique that allows a webmaster to forward his one domain to another domain through URL redirection, or making different web pages available under many URLs

Solution:

Log in to Blogger:

Access your Blogger dashboard using your Google account credentials.

Navigate to Settings:

Locate the "Settings" option in the Blogger interface. This might be found in a sidebar menu or similar location depending on the layout.
Find "Errors and Redirects": Look for a section titled "Errors and Redirects" within the settings.
Access "Custom 404": Within "Errors and Redirects," you should find an option labeled "Custom 404" or similar. Click on it to edit the custom 404 page settings.

Paste the Redirect Code: 

Here, you'll need to paste a code snippet that facilitates the redirect. You can find this code by searching online for "Blogger 404 redirect code." Here's a general idea of the JS code:

Sorry for the inconvenience, the page you are looking for has no existence.<script type = "text/javascript">
//Blogger 404 Redirect Powered by Blogger Coding Tips
BSPNF_redirect = setTimeout(function() {
location.pathname= "/"
}, 1000);
</script> 

Comments :

Post a Comment