Redirect Blogger 404 Mistake (Page Non Found) To Homepage

A 404 fault page tells you lot as well as search engines that a page is non institute yesteryear displaying a text similar to "Sorry, the page you lot were looking for inwards this weblog does non exist.". This may laissez passer on off because you lot bring changed your URLs over time, either removed a few pages when you lot overhauled your design, or a visitor may bring accidentally misspelled an URL nonexistent inwards your blog, as well as then it automatically redirects to the 404 fault page (page non found).

Most likely, this volition non brand a expert impression on the potential users of our blog. So, earlier the visitor clicks the dorsum push or closed the window/browser's tab, so leaving our site forever, nosotros may desire to redirect 404 fault inwards Blogger to a page, as well as then that the visitor volition instruct out along reading our blog.
 fault page tells you lot as well as search engines that a page is non institute yesteryear displaying a text sim Redirect Blogger 404 Error (Page Not Found) To Homepage


One of the most used methods is the "meta refresh" but the work alongside this method is that it breaks navigation (doesn't let to furnish back). In this case, the best method is to utilization JavaScript nigh which I volition become into to a greater extent than special below.

Redirect Blogger 404 Error alongside JavaScript

Go to your Blogger dashboard, pick out your weblog as well as click the Settings carte du jour item > Search preferences > Custom Page Not Found.

 fault page tells you lot as well as search engines that a page is non institute yesteryear displaying a text sim Redirect Blogger 404 Error (Page Not Found) To Homepage

Copy as well as glue the next code within the empty box:
Sorry, the page you're looking for inwards this weblog does non exist.
You volition move redirected to homepage shortly.
<script type = "text/javascript">
PNF_redirect = setTimeout(function() {
location.pathname= "/"
}, 5000);
</script>
The text which is going to move displayed tin move modified equally you lot want. If you lot are willing to redirect the 404 fault page to only about other page other than habitation page, only supersede pathname to href as well as / alongside the url of your page. Finally, the seat out 5000 which is the delay expressed inwards milliseconds, tin move changed to other value if this is to a greater extent than convenient.

Next matter to create is to 'Save changes' as well as create a petty exam to cheque if the code industrial plant well. You tin verify the 404 fault page functionality yesteryear adding a random text at the halt of your weblog address - afterwards pressing Enter, you lot should encounter the fault page followed yesteryear a redirection afterwards v seconds. That's it!

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel