Wednesday 13 June 2012

How To Redirect a Blogger Post to Another URL

Important: All scripts hosted on widcraft.googlecode.com don't work anymore because Google has blocked that SVN repository.

  • Login to your blogger dashboard > Template -> Edit HTML
  • Scroll down to where you see <head> tag .
  • Copy below code and paste it just after the <head> tag.

<b:if cond='data:blog.url == "YOUR-BLOG-POST-URL"'>
<meta http-equiv="refresh" content="5; url=REDIRECT-URL" />
</b:if>
  • Replace YOUR-BLOG-POST-URL and REDIRECT-URL as your need.Look at the example below.
<b:if cond='data:blog.url == "http://widcraft.blogspot.com/p/facebook.html"'>
<meta http-equiv="refresh" content="5; url=http://facebook.com/hardeepsrani" />
</b:if>
  • If I add above code to my template,When someone go to my contact us page/post he will be redirected to my home page after 5 seconds.To redirect without waiting replace 5 with 0.
  • Now save your template and you are done.

Important: Check our new website TricksPanda.com for WordPress tutorials, plugins and more.
 
Powered by Blogger.