Custom Search
Use Custom Search above and/or Labels in right sidebar to search for topics

Sunday, May 13, 2007

Redirecting a New Blogger blog to another site

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.

29 comments:

lifestyle said...

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.

plonkee said...

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

Damian said...

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

Better Living Through Miles said...

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!

Peter Chen said...

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)

Admin. de Empresas said...

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

Peter Chen said...

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

JENNY said...

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

Peter Chen said...

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)

Jolly Green Girl said...

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

Travel Betty said...

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!

Peter Chen said...

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)

Travel Betty said...

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!

Dr. J said...

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?

Peter Chen said...

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)

Peggy Archer said...

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!

Paul said...

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

Paul Shearer
http://money.informedcio.com

Darem Placer said...

thanks for this tip Peter. :)

Pasifik said...

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

Peter Chen @ Enviroman (Blog*Star) said...

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.

Sotos said...

It worked also for me !

Thank you

Vidya Sury said...

Whoaa! It works for me.
Thanks so much.

Vidya

Shawn Ryan said...

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

Rajesh N Butpur said...

thanks

blogger-godown.blogspot.com

HIDOuLIKEMYDISPLAYNAME said...

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 :)

Peter @ Enviroman said...

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.

Sarah Largen said...

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?

Peter @ Enviroman said...

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.

Sarah Largen said...

gotcha, thanks for your speedy reply.