Thursday, January 7, 2010

Redirect a Blogger Post to Another URL

If you want Redirect a Blogger Post to Another URL, follow this step :
1.Login to your blogger dashboard--> layout- -> Edit HTML
2.Scroll down to where you see<head> tag .
3.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" />
4.Replace YOUR-BLOG-POST-URL and REDIRECT-URL as your need.Look at the example below.
<b:if cond='data:blog.url == ""'>
<meta http-equiv="refresh" content="5; url=" />
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.
5.Now save your template.


Post a Comment