As we all know blogger doesn’t provide an option for 301 redirect on a page by page basis. The only option left with us is meta refresh redirect.

Say you want to redirect http://xyz.blogspot.com/2008/11/about.html to http://www.xyz.com/about/

Here is the code that you will need:

<b:if cond='data:blog.url == "http://xyz.blogspot.com/2008/11/about.html"'>
<meta content='0;url=http://www.xyz.com/about/' http-equiv='refresh'/>
</b:if>

Some points to note:

  • You need to place this code just before the head section closure ie before </head>  tag.
  • Take note of spacing before and after equals to sign and also there should be two (==) and not one (=) equals to sign.
  • content = 0 means. The browser will wait for 0 seconds before redirecting to another page.
Share This Article: