Redirect your old Blogger blog to your new WordPress blog
May 14th, 2008A lot of you switched from Blogger (blogspot.com) blogs to WordPress in order to use the ProPhoto theme.
If you’re anything like me (and I know I am) you probably just posted one last time on your old blog saying “Our blog has moved!” and putting a link to the new address. Well, I was thinking today there’s got to be a better way, so I dug around a bit, found a few posts, and came up with this for my wife’s old blog: Click here to see it. Go ahead, click on it and come back here.
Pretty cool, eh? Here’s how to do it:
Log into your old Blogger dashboard and click on Manage: “Template” for the blog you want to redirect, as shown below:
Then, hunt around in the big editable text box, and just below the tag that says <head>, paste in these two lines:
<meta content='1;url=http://www.website.com/blog/' http-equiv='refresh'/>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW"/>
Be sure to change the address (highlighted in red) to your new blog’s address. The second line tells search engines not to read or index your old blog. This assumes that you’ve imported your old blogger blog into your WordPress blog. Search engines penalize you some for duplicate content (having the same exact content appear in several places on the internet) so this takes care of that. If you didn’t import your old blogger blog into your WordPress blog, then you can leave this line out. Also, the number “1″ in the first line is how many seconds the user will wait before they are redirected. You can adjust this if you want.
This code takes care of redirecting browsers to your new blog. Next we have to insert one more bit of code to display that cool yellow box so they know what’s happening to them.
To do this, scroll down a bit further and find a line that says:
<b:section class='main' id='main' showaddelement='no'>
Right below that line, paste in this chunk:
(NOTE: if you are still using an ancient Blogger template like I was, you might not have this line of code. Instead, just insert it right below the <body> tag.)
<div style='position: absolute; top: 0; left: 0; margin: 30px; border: solid 2px #333; color: #000; background-color: yellow; padding: 25px; width: 85%; z-index: 5; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 14px;'>
<p><strong>My blog has moved!</strong></p>
<p>You should be automatically redirected in a few seconds. If not, visit<br/> <a style="color:red;" href='http://www.website.com/blog/'> <strong>http://www.website.com/blog/</strong></a> <br/> and update your bookmarks.</p></div>
Again, be sure to change the website address twice in the above code (highlighted in red) to your blog’s address. Click save changes, and check your work.
Questions? Leave ‘em in the comments and I’ll try to get back to you in a jiffy.






