How To Redirect A Blog To Another Blog or Address

I had to make this post because I realized what would have happened if there was absolutely no way to redirect a blog to another. I initially intended to make http://fbt.doncaprio.com a different blog under a sub domain but changed my mind due to certain reasons. I was quite worried about all the traffic I was going to lose and decided to go online just to make a little research. I came up with a little trick which I’m gonna share here, who knows, someone else might just need it down the line.

To redirect one blogspot blog to another needs no techie stuff, simply copy and pasted the code below in the HEAD section of your template by folowing these steps:

* Login to your blogger account and click on Design > Edit HTML

* Now Press CTRL = F and serch for </head>

* Paste the following code just above this

 

<meta HTTP-EQUIV='REFRESH' content='0; url=http://my-new-blog-adress'/>
<meta content='NOINDEX, NOFOLLOW' name='ROBOTS'/>

Please change my-new-blog-adress to your own new address.

Explanatory Note

content=’0 as shown in the code determines how long (in seconds) your visitors will stay on the old blog before being redirected. I set it to Zero but you might change it depending on your choice.

Also <meta content=’NOINDEX, NOFOLLOW’ name=’ROBOTS’/> tells search engines to stop indexing posts on your old blog. This prevents your new blog from being penalized by google for duplicate content as pages indexed on the old blog will be removed in due time.

Update – Redirecting Individual Blog Posts

Now we must redirect individual posts to the new blog but it’s impossible to add a 301 permanent redirect on Blogger server. However, we can achieve this using a trick. Search for this code:

<b:section class='main' id='main' showaddelement='no'>

Right below that, paste this:

<b:widget id='Redirector' locked='true' title='Blog Posts' type='Blog'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == "item"'>
<b:loop values='data:posts' var='post'>
<script type='text/javascript'>
var new_page='yournewblog.com/';
var permalink = '<data:post.url/>';
var timestamp = '<data:post.timestamp/>';
timestamp = timestamp.split('/');
timestamp = timestamp[2]+'/'+timestamp[0]+'/'+timestamp[1];
new_page = permalink.replace(/youroldblog.blogspot.com/2007/[0-9]{2}/,new_page+timestamp);
new_page = new_page.replace(/.html$/,'');
document.location.href = new_page;
</script></b:loop>
</b:if>
</b:includable>
</b:widget>

You must replace yournewblog.com and youroldblog in the code with the code with address of your new blog and old blogspot subdomain respectively. Hope it works for you!

. Filed Under: Blogger




Author: Don Caprio

Don Caprio is a full time blogger / web designer living in Nigeria and apart from blogging, my other obsession is music. I'm a self-confessed Tupac fan, an iOS lover, an Android user, a Windows 8 power user, a writer with a 5-year old unfinished novel... and the list goes on and on. You can add me on Facebook, follow my updates on Twitter or add me to your circles on Google+! You can as well grab my feed and get updates through email...

  • plastic plates

    You have brought up a very superb points , appreciate it for the post.

  • JC

    this and another set of scripts I found on the web I tried did not work for me. However I was able to get it to redirect by the following: Settings->Publishing->Advanced Settings-> enter the new Domain Name I want to redirect to. Hit Save, View Blog, the redirect works immediately.

    The blog I am trying to redirect is on the old Blogger template.

  • Don Caprio

    I'm using this exact one on http://fbt.doncaprio.com to redirect hereI'm using this exact one on http://fbt.doncaprio.com to redirect here

  • Abhishek

    thanks man

  • http://gadgetsmaniac4u.blogspot.com Shanky Sahni

    hi Don,
    I am about to move to WP from a sub domain blogspot blog.Since previous posts indexed by Google will be removed as you mentioned then if after that I import by blogger posts,Will I be penalize by Google?Does that also mean the same posts on my WP blog will be indexed by Google?

    • Don Caprio

      You can’t be penalized so far the NOINDEX tag is in place. The ones on blogger will be removed removed from google search and the new ones on wordpress will be indexed instead. However, I recently updated the article to redirect individual blog posts.

  • http://www.freebrowsinglink.com university of nigeria

    man this works like magic!!! redirected my dailyschoolinfo to university of Nigeia Nsukka
    thanks and i love your blog.

    • http://www.doncaprio.com Don Caprio

      The pleasure’s mine! Glad it worked for you :)

      • http://www.smarttricks.co.nr Smarttricks

        Your comment is awaiting moderation.

        After pasting the code

        var new_page=’yournewblog.com/’;
        var permalink = ”;
        var timestamp = ”;
        timestamp = timestamp.split(‘/’);
        timestamp = timestamp[2]+’/’+timestamp[0]+’/’+timestamp[1];
        new_page = permalink.replace(/youroldblog.blogspot.com/2007/[0-9]{2}/,new_page+timestamp);
        new_page = new_page.replace(/.html$/,”);
        document.location.href = new_page;

        and when i tried to save Template it is Showing an
        “Error The new widget id “Redirector” is invalid for type: Blog”

        Please Reply me on smarttricks@writeme.com

        • http://www.doncaprio.com Don Caprio

          I really doubt if that code works on blogger anymore after all the upgrades that’s been done. Th code is over 2 years old.

  • http://onesbi.com/ Weight Loss Pills

    Hi Don, you have a nice blog, i ask you one question, is redirecting an old blog to new blog safe for adsense? Thanks,

    Regards,
    Alex.

    • http://www.doncaprio.com Don Caprio

      Thank for the compliment. It’s perfectly safe to do that.

  • http://www.ngbuzz.com S Briggs

    Don, Can i do this redirection via Cname / A name records instead?
    I’m not interested in the posts.. i’ve moved them all to the new site.. all incoming search for them now shows Not Found..

    Would like to redirect all incoming traffic to the new domain home page
    From Blogger to SMF so that individual url thing wont work..
    Google finally pardoned me oh

    • http://www.doncaprio.com Don Caprio

      CNAME redirection? I think you can do domain forwarding instead.

  • http://www.crazycoolgadgets.com JohnS

    I’m not sure you’ll get that search engine ranking juice if you use NOFOLLOW attribute. Any thoughts on that?

    • http://www.doncaprio.com Don Caprio

      Yes, you probably won’t get link juice but it’s a lot safer than having duplicate contents appear on both blogs.

  • http://coilylocks.com Alisha

    I did everything and stupid blogger told me “The new widget id “Redirector” is invalid for type: Blog”. Oh well I’ll play around with it some more and hopefully get people redirected from this blog before I delete it.

    • LizsWares

      Same thing happened to me.

      How do we fix this?

  • http://www.theflyingcouponer.com/ The Flying Couponer

    Hi Don! IT’S WORKING!!!! I have been trying to do this for a long time. When I google one of my post, my old blog still shows up. How long does it take for my new blog to show up?

    • http://www.doncaprio.com Don Caprio

      It may take weeks, or even a month before it gets totally de-indexed.

  • wasim

    i got this as a error please help

  • http://www.theflyingcouponer.com/ The Flying Couponer

    Merci!!! I can’t wait!

  • http://www.tricksaddiction.in Sumit

    Hey Don…….
    I was having a Blogger blog and I redirected it to my wordpress site, having same url that is tricksaddiction.in , I imported all the articles to new site and did the url redirection but unfortunately redirection didnt worked and when people open tricksaddiction.blogspot.com/example it redirects to tricksaddiction.in/example and says cannot found or similar………….
    I think that I have missed no-follow tag
    I am quite worried about being penalized by google ……. I am sure that I am being penalized by google because from that time I even didnt got any pagerank from google, even I deserve it a lot……….. So I want to know that what they do when they give penalty, and this is permanent or temporary do my blog has a future ? I did this redirect last year in the month of July…….. Please reply asap…….

    • http://www.doncaprio.com Don Caprio

      The redirect didn’t work well because you’re using a different permalink structure on your WordPress blog.

      If you actually forgot to de-index the old blog, it can be a real issue. Since then, does the old site still come up when your run a google search?

      • http://www.tricksaddiction.in Sumit

        I think no………….and also My old site disappeared from search engine in few days……… only tricksaddiction.blogspot.in was coming in search results, not the articles……….
        I had, Completely delete the HTML of blogger and pasted new Permalink redirection HTML……….. means tricksaddiction.blogspot.in was not accessible at all………….

        BTW If I really hadn’t de-index that old blog then what will google do with my new blog………and what is the time period of their penalty….
        Hey Friend I really need to add you on facebook, I need one master who will help me to sort out my problems, I promise that I wont irritate you……. My fb url is
        facebook.com/sumitsagar1996 plz send me frnd request………..

        I want to ask you one thing more,
        Their was a author on my site, He published an article on my site, then suddenly he published the same article on a different site. When I saw that I deleted the article from my site……….. Now when I asked him about this then he said sorry and deleted article that he had posted in other site……..and insisted me to republish that article on my blog…..I republished that article……I made right decision ?
        And also I am not getting PR why? When I use PR predictor tool then it shows PR4 but , I havent got any PR yet :(

        Sorry for too many questions :/

        • http://www.doncaprio.com Don Caprio

          Even de-indexing the blogspot site may not bring the WP site back on SERP as quickly as you hope for. Do you use Google webmaster tools? Have you checked if there’s any message for your there? Any alert?

  • http://stylereporter.blogspot.com/ Style Reporter

    You are such a genius! thank u.