In this case, you want when wrong URL type, or accessed deleted post on that case you want redirect the traffic to the home page. In this case, follow this instruction:
First, log in to the blogger account, go to "Setting", go to "Search Preferences", click on "edit" which present in front of "Custom Page Not Found".Now paste the following code:
Code credit: InternetSmash
Sorry, the Page you were looking for in this blog does not exist.
</br>
You will redirected to homepage shortly.
<script type=”text/javascript”>
BSPNF_redirect = setTimeout(function() {
location.pathname= “/”
}, 5000);
</script>
</br>
You will redirected to homepage shortly.
<script type=”text/javascript”>
BSPNF_redirect = setTimeout(function() {
location.pathname= “/”
}, 5000);
</script>
Now click "Save Changes". Yes, you are done, now anybody gets "404 pages" automatically get redirected to the "Home page" of your website!
No comments:
Post a Comment