Sunday, May 13, 2007

Redirecting a New Blogger blog to another site

Update: Chuck @ nitecruzr, a blogger very knowledgeable about IT stuff, says that a Javascript redirect as described in this post will very likely get your blog deleted. Check out his post, Some Blogger Blogs Being Locked As Malware Hosts, Because Of Malicious JavaScript, described this issue in more details.

A better way to do it is to setup a virtual host in the domain, and publish the blog to the virtual host URL. Learn how to here.

I have previously done a post for redirecting a blog to another site for the old classic Blogger at How to redirect from old URL to new URL. However, on testing, it was found not to work on the New Blogger blogs anymore, even with changes.

This is the way to do it for the New Blogger. First thing to do always before you make any changes to the template is to backup the template PLUS the Page Elements. Some or all of your old Page Elements will be deleted or become empty when you upload a new or backup template. If you are not familiar with the method to do it, refer to Backing up and changing New Blogger templates.

First, sign into your Blogger Dashboard, click LAYOUT, then click the EDIT HTML sub-tab. This will open the template editor window. Add this block of codes into your template just below the <head> tab which should be very near the top of the template:

<meta name="robots" content="noindex" />
<script type="text/javascript"><!--//--><![CDATA[//><!--
var url = "URL of where you want the blog to be redirected"
(document.images) ? location.replace(url) : location.href = url;
//--><!]]></script>
<meta http-equiv="refresh" content="0;URL=URL of where you want the blog to be redirected" />


Then add this just below the <body> tag:

<p><a href="URL of where you want the blog to be redirected"></a>.</p>


Make sure you replace URL of where you want the blog to be redirected with the actual URL of the site you want to redirect to. If you are not familiar with URL, refer to What is URL and how to get it.

Update 5 August 2007: Two readers have complained of problems with this hack. I have taken the trouble to retest following exactly the instructions given above with a test blog Testing New Blogger Redirect.
Update 1.9.2008: Apologies, I have unknowingly deleted the above test blog. But be assured that I have successfully tested the redirect.

The link is supposed to take you to
http://testing-new-blogger-redirect.blogspot.com/
but click on the link and see where it eventually takes you. It will take a short interval before you get redirected.

One think I suspect is they have left out the http:// from their URL.

73 comments:

  1. I think you got a great blog!! Thank you for that. I'm definitely going to add u to my favorite :)
    I hope you can visit my blog at Thaer Money.

    ReplyDelete
  2. Ok, I've done it and it redirects to plonkee.blogspot.com/www.plonkee.com
    instead of www.plonkee.com

    ReplyDelete
  3. Absolutely Brilliant - thank you so much.

    I was having nightmares worrying that I'd lose all my readers and the Link Love I've received and that little piece of script was just what I needed.

    Much Love,

    Damian

    ReplyDelete
  4. Question, before I try implementing this.

    Does this redirection script maintain permalinks, or are all visitors pushed to the new site's homepage?

    e.g., if a reader enters
    oldsite.blogspot.com/2006/11/blog-moving-please-visit.html

    will they be directed to

    newsite.com
    or to
    newsite.com/2006/11/blog-moving-please-visit.html

    I'm looking for a solution that maintains the permalink structure in the redirection.

    If that's not possible with this script, is there a tweak that would make such a redirection possible?

    Thanks in advance!

    ReplyDelete
  5. Hi Better living through miles,

    I suspect it only redirect traffic going to the main (index) page. However, I still have not tested the redirect. I will probably do it when time permit and update this post when I do. I hope you have made your profile and blogs public as otherwise I do not know how to contact you.

    Peter (Blog*Star 2006 and 2007)
    Testing Blogger Beta (now New Blogger)

    ReplyDelete
  6. Sadly, it does not work if a person enter in yourblog.blogspot.com/2005/05/any-post.html
    and that post doesn't is there anymore because you changed your blog to yourbrandnewblog.blogspot.com

    ReplyDelete
  7. Hi admin. de empressa,

    Those blogs are not mine. I just retested the technique again at this blog
    http://testing-redirect.blogspot.com/
    I delibrately didn't make it an active link so that you can see the URL. Copy the URL and paste it into the address bar of the browser and see where it takes you.

    Peter (Blog*Star 2006 and 2007)
    Blogger for Dummies

    ReplyDelete
  8. HI just what i am looking for ..i tried it and it redirects but the thing is my domain blog keeps on refreshing fro about 2-3x which is kinda annoying so i have to remove the codes.. can you help me why it is happening..

    jenny
    http://jennys-corner.com

    ReplyDelete
  9. Hi Jenny,

    I have tested this before publishing the post, and the old site just display for a while, then is directed to the new site. I don't know what is causing your problem. Maybe I will test it again. Save the URL of this post and check back later to see if I have done the test.

    Peter (Blog*Star 2006 and 2007)
    Testing Blogger Beta (now New Blogger)

    ReplyDelete
  10. Thanks so much! This is exactly what I needed.. you have been a big help

    ReplyDelete
  11. I'm having the same problem plonkee had.

    I'm trying to redirect: www.travelbetty.blogspot.com to www.travel-betty.com

    When I paste the code it redirects to www.travelbetty.blogspot.com/www.travel-betty.com

    Any advice? Thanks!

    ReplyDelete
  12. Hi TravelBetty,

    I have taken the trouble to retest the instructions given in this post in a test blog Testing New Blogger Redirect and it worked. Click on the above link and see where it takes you.

    One thing I should remind you. Don't forget to add the http:// to your URL.

    Peter (Blog*Star)
    How you can help Blogger Tips and Tricks
    (no one should feel obligated. Everthing completely voluntary)

    ReplyDelete
  13. Thanks, Peter! You called it. I wasn't including the http://

    Now it works perfectly!

    And hey, thanks for the redirect to my site and for the awesome, helpful code!

    ReplyDelete
  14. Hi I was hoping you have an idea about how I can get a header to click you through to another destination than itself (make sense?). I have set up a second blog as an archive for old mastheads. I´d like the header on my second blog (alientedheads.blogspot.com) to redirect you to my main blog (aliented.blogspot.com) when you click on it.

    Any ideas?

    ReplyDelete
  15. Hi Dr. J,

    Redirecting? No problem if it is a graphic Header. Refer to Special fonts for your blog clickable image Header. Just substitute whatever URL into the the relevant place. Any problem, comment in that post.

    Peter (Blog*Star)
    Testing Blogger Beta (now New Blogger)

    ReplyDelete
  16. This worked for me, although I've not tried the re-direct from individual posts.

    From the main blogger page, the re-direct works amazingly well!

    Thanks!

    ReplyDelete
  17. Great infomation. I'm just starting to blogging and this information is invaluable.

    Paul Shearer
    http://money.informedcio.com

    ReplyDelete
  18. thanks for this tip Peter. :)

    ReplyDelete
  19. Hi Peter Chen,

    I have followed all your instruction to redirect new blogger blog to my site. However, it doesn't run well. I still have 404 error message.

    I also add "http://" in front of my url but same result, 404 error.

    this is my old url:
    toddlergamesonline.blogspot.com

    and my new site url:
    games.toddlerworlds.com

    any help will appreciate!

    regards,

    TODDLER WORLDS

    ReplyDelete
  20. Hi Pasifik,

    I have tested this and it worked. Try
    kokleewah.blogspot.com
    and see that visitors are redirected to a different website after 5 seconds. I don't know why it didn't work for you because I don't know what you did.

    ReplyDelete
  21. It worked also for me !

    Thank you

    ReplyDelete
  22. Whoaa! It works for me.
    Thanks so much.

    Vidya

    ReplyDelete
  23. Thank you very much. The instructions were clear and it worked for me.

    ReplyDelete
  24. thanks

    blogger-godown.blogspot.com

    ReplyDelete
  25. Hey, first I want to say you have a great blog and second uhh...how do you do a post-to-post redirect? like old url post re-direct to new url post.Also can you give me some ideas or some info on how long it would take for google to realize that I changed my old url to a new one.I know it's going to depend on everything but if you can give me some rough information or something then that would be great.And finally would it be a long time or no time for google to update my new url because they might think that I have a duplicate site or something though I dont, cuz I just have and left the codes, gotten from your blogsite, on how to redirect my old url to my new one.On my new one I have all the post I have from my old url.ANyway I'm going to stop right cuz I think Im think I'm typing too much :D Allright so take care and many thanks if you are able to answer my questions.I hope I was not too vague in explaining myself :)

    ReplyDelete
  26. Redirect from post to post. If your new URL is a custom domain, Blogger will automatically redirect old posts to new posts. See effects of custom domain conversion. However, if you just start a new blog and transfer the posts from the old blog to the new blog one by one, then you will have to put an active link from each old post to each new post one by one.

    Regarding how long before Google will index your new blog, this will be just like starting a brand new blog in that you will have to enter the queue. However, if your old blog is already indexed and you have an active link from the old blog to the new blog, this may make the process faster. How long. Heaven knows.

    Note that search engines penalize duplicate content.

    ReplyDelete
  27. I don't know how you have time to answer all these questions....But I have one more. So I have a blog address & have just purchased/reserved a web domain name. I want to start using my new web address instead of my blog address, but still maintain my blog through blogger & update it the same way. I have noticed many e-commerce blogs have upgraded to a website this way & not sure how they do it. So when someone keys in my blog address, it will automatically send them to the web address & they won't notice. And they could arrive at the "blog/website" by either address. Does this make sense and do you know how to do this?

    ReplyDelete
  28. I bought my custom domain through Blogger-Google Apps and all is done automatically. If you already have a domain, then you will have to do it through the registra but on this I cannot help.

    ReplyDelete
  29. gotcha, thanks for your speedy reply.

    ReplyDelete
  30. Worked perfectly on my first try! Thanks!

    ReplyDelete
  31. Thanks this was exactly what I was looking for and worked perfectly! Thank you soo much.

    ReplyDelete
  32. The code under body tag for redirecting an old website to a new one is missing on this page. Can you please replace it?

    ReplyDelete
  33. Missing? You mean only visible in the scroll boxes by scrolling down? If so, I have increased the height of the scroll boxes so one don't need to scroll down to see the URL,

    ReplyDelete
  34. Brilliant. Works like a treat first time no hassles. Thanks for this!

    ReplyDelete
  35. i've already submitted my blog to a RSS feed. if i change my url and redirect my old url, will the rss feel continue working as before?

    ReplyDelete
  36. hello,
    im trying to redirect my old blog's url - http://anahata-kentroenallaktikwntherapiwn.blogspot.com/ to a new one - http://ninabazouki.blogspot.com/

    im copying the block of code you gave before, first part after head tab and 2nd part after body tab.

    Am i doing something wrong??
    it shows me the message "page not found"..?!!Any ideas??

    Thanks in advance

    ReplyDelete
  37. I just used your tutorial to redirect my old blog. I am the type of person who breaks out in a sweat when I see html code.

    It worked great!

    Thanks so much!

    ReplyDelete
  38. Thanks for the post but when I use that code it creates a loop and the redirected page keeps on refreshing. How do I avoid that?
    I have a blog on blogger and I bought a custom domain through them which is with GoDaddy.
    I just want this feature to act once, I mean I don't want it to keep refreshing the redirected page.
    Kindly help!!

    ReplyDelete
  39. Thx alot! works like a charm!

    ReplyDelete
  40. Thanks for the info! Worked perfectly!

    ReplyDelete
  41. Thank you very much! Yes, it worked smoothly for me. Thank you once again! :)

    ReplyDelete
  42. thanks pal...
    please be sure to visit my old blog & how it gets redirected to my new blog... :)

    ReplyDelete
  43. Thank you! Thank you! Thank you!

    I experienced a catastrophic code scramble while trying to switch to one of the new Blogger designs and had to start all over from scratch. I just installed the redirect code and tested it, and it worked just fine.

    The thing that saved me was that I had bookmarked my "edit posts" page separately. I can go to this page and copy my old posts to the new site. Now with this redirect code installed, my readers will automatically find the new site, and I still have access to my old "edit posts" page to continue importing these posts to my new site.

    Thanks again.

    ReplyDelete
  44. i am quite lost at the body part :|

    ReplyDelete
  45. hi, so just to clarify: I want to change the URL of my blog from www.thelushfleet.blogspot.com to www.karmakollective.blogspot.com. Basically, do I just change the blogspot address in the settings/publishing tab to what I want it to be (karma kollective) and then add in the given codes into the HTML? Just making sure that this is what the codes are for.

    ReplyDelete
  46. Karissa, this post show how to redirect from an existing website to another existing website but it doesn't sounds like that is what you want. I understand your intention as to change the URL thlushfleet.blogspot.com (it means this site will be no more existing) to a new url karmakollective.blogspot.com (newly existing) so all you need to do is to do that in SETTINGS > PUBLISHING.

    It would be different if you still want to keep the URL thlushfleet.blogspot.com but to redirect traffic to your new URL in which case you use the instructions here and create a new blog with that new url.

    ReplyDelete
  47. alright, thanks anyways. What I was really wondering, since I have already left my URL links on other blogs by commenting on their posts, was if it were possible for future visitors to be redirected to "karma kollective" if they happened to type in "the lush fleet" URL. If I change the URL, won't it be possible for spammers to use the old URL or something like that?

    ReplyDelete
  48. I would suggest you leave your old URL alone and backup your old blog with EXPORT and then import all your posts to the new URL, then do a redirect from your old URL to the new

    ReplyDelete
  49. I see, so I should not delete my old blog at all, which would leave me with two in total, correct? but how would I do a "redirect" ? Or do I export my blog, import it into a new URL, and then delete the old blog?

    ReplyDelete
  50. Delete? Why I thought I had already suggest you leave your old URL alone (meaning don't delete), create a new blog if you have not done so already and export your old posts to the new blog plus do a redirect from the old URL to the new URL using instructions from this post.

    ReplyDelete
  51. okay, so I tried what you had suggested, and the only problem I have with this is that every time I try to edit the blog's page elements of the "older" url, the "add and arrange page elements" does not show up, but instead, part of the re-directed page in the space where the "add and arrange page elements" stuff should be.

    ReplyDelete
  52. Maybe it is better to continue via email if you wish. Suggest you contact me via my contact form and provide as much details as possible or what you think pertinent.

    ReplyDelete
  53. Hi Peter, Can you advise me on the best possible option? I have a blog grilabirintus.blogspot.com, but I have been connected last week, that I cannot use the "gri" as a website address, it is a violation of their logo etc policy. I accept this it was definitely not my intention (I understood that it is only the logo that is restricted), so I asked for some time to solve the problem. I have to find a new name for the blog, but that is the easiest part. I would need a solution, where I don't loose the content, template, gadgets etc, and not loose readers and those who have subsribed. One option that came to me reading your posts is making a new blog, exporting the old one (will that new blog have the exact same look as the previous in that case?), and than redirecting from the old. But this would mean I am still violating the logo policy, wouldn't it? For those who have subsrcibed, I could make a post on the new url, but what about the others? HOw could I most easily solve this problem?
    Thank you in advance!

    ReplyDelete
  54. Ukati, what do you mean when you say use "gri" as a website address (give us the URL and who tells you that "gri" violates their logo policy?

    ReplyDelete
  55. Hi Peter, sorry for the late reply. GRI is an institution with a guideline, and I am writing about the use of that guideline in my blog. They claimed (GRI itself) that if the address of the blog has GRI in it, than it makes the readers feel that it is an official site for GRI. The logo policy (http://www.globalreporting.org/Home/TermsAndConditions ) is not that obvious, but I do not want to have any debates with them... So I made a new blog since, and I am redirecting the old website according to your above instructions (it works fine!). Since I have heard, that they have to buy the url, if they do not want me to use it, so I guess if I am redirecting, but not removing the blog, that would be a good solution for all...
    I am making a post for my subscribers about the change.

    ReplyDelete
  56. You mentioned "take a short interval before you get redirected". Is there a way to shorten or remove the interval so that it will redirect automatically with no interval?

    ReplyDelete
  57. Remove? Yes, if you are a magician. There are various processes that need to take place, eg getting the IP addresses, eg 1.160.10.240 corresponding to the URL's before redirection can take place.

    Shorten? Not sure but think that if you can replace the URL www.domain.com with the IP address 1.160.10.240 it may shorten but here I am getting into an area which I seldom tangle with.

    ReplyDelete
  58. how to redirect each post to exact post in new blogger... please explain.. not to homepage

    ReplyDelete
  59. If you are referring to new urls created by conversion to custom domain, then answer is, Blogger does it automatically for you.

    If it is from a blogspot blog to another unrelated blogspot or other blog, I doubt it can be done.

    ReplyDelete
  60. Thank you very much Peter for the excellent coding to redirect my old Blogger.com blog from www.wickerwoman.blogspot.com to my new WordPress blog at www.wickerwoman.com/blog! It worked like a charm!

    ReplyDelete
  61. Wordpress? Sad to see you go, but anyway, wish you all the best

    ReplyDelete
  62. Thank you sooooo much!! You ROCK!!!

    Now I have to figure out how to make it so that my posts on my new url show up in readers' feeds!

    ReplyDelete
  63. sir i need to know one thing.Sir i want to change my blog name and url to some other name and url. So if my visitors click the old url how can i redirect them to the new url
    please help me on this sir

    ReplyDelete
  64. For Apuroops KGS,

    All the instructions for redirecting to other website are already given in this post. So what is your problem?

    ReplyDelete
  65. I have a blog and I use this script to redirect all traffic to my new website. But my doubt is , does Google looks anything wrong in this ? In what case Google finds this is wrong way of diverting traffic. I use adsense ads in my site. so is there any issue arise ?

    Thanks,
    Chenna Reddy

    ReplyDelete
  66. Read the update in this post and the comment by Chuck (Nitecruzr)

    ReplyDelete
  67. it works, but it's kinda slow for me, it shows the empty blog for like 2 seconds before redirecting.

    ReplyDelete
  68. Hi, very clear instructions, thanks, but I can't find < body > in the HTML (without the spacing, I can't publish this comment if the spacing is in there). The closest I can get is < /body >. Will that do?

    ReplyDelete
  69. Hi, Admin i have a some problem about my blogspot blog.
    When i Click the post link then show extra code
    here http://manyaddress.blogspot.in/2014/12/top-level-e-commerce-websites.html#.VJ9ejcESo
    This is (#.VJ9ejcESo) showed every post.
    Why show the extra code and you have any solutions for that.
    Thanks

    ReplyDelete

Find help, info, instructions, tips, tricks

Tip: Use search box below or this box, labels in the first right sidebar, archive, ctrl+F for this page or sitemap to find topics