LIKE US ON FACEBOOK
Home » » Redirect 404 Errors/Unavailable Blogger Post Page to Homepage or another URL

Redirect 404 Errors/Unavailable Blogger Post Page to Homepage or another URL

Redirect 404 Errors/Unavailable Blogger Post Page to Homepage or another URL
Redirect 404 Errors/Unavailable Blogger Post Page to Homepage or another URL

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 <data:navMessage/> OR <b:if cond='data:navMessage'>

<b:if cond='data:navMessage == &quot;Sorry, the page you were looking for in this blog does not exist.&quot;'>
    &lt;script language=&quot;javascript&quot;&gt;
    window.location=&#39;<data:blog.homepageUrl/>&#39;;
    &lt;/script&gt;
    </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.

0 comments:

Post a Comment

Like us on Facebook
Follow us on Twitter
Recommend us on Google Plus
Subscribe me on RSS