Most likely, this volition non brand a skillful impression on the potential users of our blog. So, earlier the visitor clicks the dorsum push or unopen the window/browser's tab, hence leaving our site forever, nosotros may desire to redirect 404 fault inward Blogger to a page, in addition to so that the visitor volition buy the farm along reading our blog.
One of the most used methods is the "meta refresh" but the employment amongst this method is that it breaks navigation (doesn't let to provide back). In this case, the best method is to usage JavaScript virtually which I volition become into to a greater extent than especial below.
Redirect Blogger 404 Error amongst JavaScript
Go to your Blogger dashboard, pick out your spider web log in addition to click the Settings card item > Search preferences > Custom Page Not Found.Copy in addition to glue the next code within the empty box:
Sorry, the page you're looking for inward this spider web log does non exist.The text which is going to live on displayed tin live on modified equally you lot want. If you lot are willing to redirect the 404 fault page to simply about other page other than abode page, simply supersede pathname to href in addition to / amongst the url of your page. Finally, the set out 5000 which is the delay expressed inward milliseconds, tin live on changed to other value if this is to a greater extent than convenient.
You volition live on redirected to homepage shortly.
<script type = "text/javascript">
PNF_redirect = setTimeout(function() {
location.pathname= "/"
}, 5000);
</script>
Next affair to create is to 'Save changes' in addition to create a piffling exam to banking concern agree if the code industrial plant well. You tin verify the 404 fault page functionality yesteryear adding a random text at the destination of your spider web log address - later on pressing Enter, you lot should run into the fault page followed yesteryear a redirection later on five seconds. That's it!
Comments