1. Login to Blogger with your ID.
2. Click Template.
3. Click tab Edit HTML > Proceed >
4. Click on Expand Widget Templates
5. Find & Past Below Code After
6. Now save your template and refresh any of your 404 error/unavailable blogger page to check if this script is working or not.
7. If you do not want too redirect your 404 error/unavailable blogger page to your homepage instead you want to redirect to some another website than just replace the
2. Click Template.
3. Click tab Edit HTML > Proceed >
4. Click on Expand Widget Templates
5. Find & Past Below Code After
<data:navMessage/> OR
<b:if cond='data:navMessage'>
<b:if cond='data:navMessage == "Sorry, the page you were looking for in this blog does not exist."'>
<script language="javascript">
window.location='<data:blog.homepageUrl/>';
</script>
</b:if>
6. Now save your template and refresh any of your 404 error/unavailable blogger page to check if this script is working or not.
7. If you do not want too redirect your 404 error/unavailable blogger page to your homepage instead you want to redirect to some another website than just replace the
<data:blog.homepageUrl/>
line in above code with http://www.your-url.com and that’s it will start redirecting your error pages to that domain name.
No comments:
Post a Comment