301 Permanent Redirect from Blogger Beta to WordPress
Most Bloggers start out with free blog hosting with the most popular of the free services being Google’s blogger where you get a yoursite.blogspot.com address. Now you want to move from Blogger to your own domain. One of the best publishing software is provided by WordPress and the best part is it is free. Importing to WordPress from Blogger used to be a breeze using WordPress’s import posts feature. However when Google moved from Blogger to the new Blogger or Blogger Beta, it became impossible to use WordPress’s import utility.
However, you can now do so with the steps outlined here about Importing Blogger Beta Posts to WordPress
Many users were able to implement this method successfully. Now, we move to the next step. Lets deal with some questions I had so far …
1. What happens to my old blogger blog? Should I just delete it after importing to WordPress?
2. I heard Google penalizes duplicate content. I now have my posts at both my old blogger blog and my new Wordpress blog hosted on my domain. What should I do?
3. You mentioned using the 301 permanent redirect from blogger to wordpress. Can i do it?
Okay … lets deal with these questions first.
1. No, you should not delete your Blogger blog. I am sure you worked hard at it. You might have many subscribers to that blog. The search engines have content indexed to that blog. What happens if you delete your blogger blog is simple … you end up LOSING ALL YOUR TRAFFIC, all your loyal subscribers and visitors simply because they dont know your new address.
2. Yes, Google penalizes duplicate content. How do you deal with this.. well read on
3. When people move from their old website to a new one they use a 301 permanent redirect method without being penalized by the search engines. However, you cannot do this straight up with Blogger because you do not have access to your .htaccess file. So its not a simple plug and play unfortunately because of this.
How to redirect your old Blogger posts to your New wordpress blog posts using a permanent redirect
I wanted to thank Owen Barder for his excellent code to redirect your individual posts from blogger to wordpress. Also, thanks to Tom Sherman. I will try to stick to what these two guys have to tell.
Using the method outlined here, you will be able to
1. Redirect your visitors from your old Blogger blog to your WordPress Blog on your domain
2. Redirect your old posts to new posts on your wordpress blog instead of redirecting them just to your home page of your wordpress blog
3. Do all this in such a way that Google does not penalize you. You also get to transfer your Google Page Rank too. How about that ….. !
Step # 1: Import from Blogger Beta to your WordPress domain
I am assuming that you backed up your blog and Imported to your WordPress domain from the new Blogger or Blogger Beta. If you didn’t do, check out my article on Import from Blogger Beta to WordPress
Step # 2: Modify your Blogger Template to include redirects
Log into your Blogger account. Go to Template and then Edit HTML. Paste the code shown below where you replace http://www.yoursite.com with the root URL of your Wordpress Blog
a. Add the code below after <Blogger> in your template
<MainOrArchivePage>
<script language=”javascript”><!–
var blog_root=http://www.yoursite.com/;
document.location.href=blog_root;
//–></script>
</MainOrArchivePage><ItemPage>
<script language=”javascript”><!–
var process_page=”http://www.yoursite.com/bloggerposts.php”;
var newpage=process_page;
var oldlink=”<$BlogItemPermalinkUrl$>”;newpage+=”?p=”+oldlink;
newpage=newpage.toLowerCase();
document.location.href=newpage;
//–></script>
</ItemPage>
b. Add the line shown here somewhere in between the <head> ..</head> tags of your blog
<meta http-equiv=”refresh” content=”0;url=http://www.yoursite.com/” />
Notice the space between /” and the />
somewhere in between the <head></head> tags like this:
<head>
<meta http-equiv=”refresh” content=”0;url=http://www.yoursite.com”>
</head>
Step # 3: Prepare your WordPress blog for Redirects
a. Open Notepad. Copy and paste the code given below. Save it as bloggerposts.php or anything else you want and put it in the root location of your wordpress blog. By root, I mean not in any wp-admin or any other folder, but in the root and the link should be something like http://www.yoursite.com/bloggerposts.php
<?php
require($_SERVER['DOCUMENT_ROOT'].’/blog/wp-blog-header.php’);
$search_link = $_GET['p'];
$vars = explode(’/', $search_link);
$num = count($vars) - 1;
$filename = $vars[$num];
$slug = str_replace(”.html”, “”, $filename);$SQL = “SELECT posts.* FROM $wpdb->posts AS posts WHERE posts.post_name = ‘$slug’ LIMIT 1″;
$posts = $wpdb->get_results(”$SQL”);if ($posts) {
foreach ($posts as $post) {
$found_link = get_permalink($post->ID);
}
}
else
{
$found_link = “http://www.yoursite.com/”;
}?>
<html>
<head>
<title>Redirecting…</title>
<script language=”javascript”><!–
document.location.href=”<?php echo ($found_link); ?>”;
//–></script><meta http-equiv=”refresh” content=”2;url=<?php echo ($found_link); ?>”>
</head>
<body>
<h1>Redirecting…</h1>
<p>You can also proceed immediately to <a href=”<?php echo ($found_link); ?>”><?php echo ($found_link); ?></a>.</p>
<p>The main blog URL is <a href=”http://www.yoursite.com/” mce_href=”http://www.yoursite.com/”>www.yoursite.com</a>.</p>
</body>
</html>
All you need to do in the above code is wherever you see http://www.yoursite.com , change it to the root location of your WordPress blog. What this code is doing is taking the URL from Step # 2 and redirect the user to the corresponding entry in your wordpress blog. In case it does not find the corresponding entry, it redirects to the homepage of your blog.
If you liked this article, click here to buy me a coffee!Popularity: 75% [?]


May 5th, 2008 at 6:20 am
Hey Ryan Ferone,
You say that “a. Add the code below after in your template“, but there no tag like that in blogger template code. Secondly, after i put that code in tags and tried to save the code, this error showed;
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.XML error message: Open quote is expected for attribute "{1}" associated with an element type "http-equiv".
June 20th, 2008 at 2:30 pm
[...] want to make the move from Blogger to your own self-hosted WordPress video blog, Ryan Ferone has some great advice about how to redirect your Blogger audience to your new WordPress site. You don’t want to [...]
July 10th, 2008 at 2:35 am
Woohoo! Wasn’t working for a while - getting Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘]’ in bloggerposts.php on line 5, and also blogger error codes - but after following some other suggestions here in the comments it directs to my new website homepage. Posts are redirecting to homepage only, but oh well, still very happy with the result!!
Tweaks: I made doubly sure that I had selected revert to classic template from the template > edit html pane. I searched for all curly ” and , in ALL code (i.e. in template and php file) and replaced with straight ones. I changed the meta code NOFOLLOW to FOLLOW.
Hope that helps others, thanks for posting this Ryan and others for their helpful comments, really appreciate the time you’ve put into it.
July 18th, 2008 at 2:46 pm
Ryan’s tutorial is bad for 3 reasons: 1) You can’t copy and paste his code without fixing a lot of the curly quote marks, as those will be interpreted as errors by anything interpreting the code. 2) The code is way outdated, and doesn’t account for things like SEO, timestamps, and forwarding individual posts successfully. 3) I could not get it to work except to forward just to the home page, which doesn’t come off as convenient for me. If people actually find the blog entry they’re looking for and then just end up at the homepage of your new blog, they will leave. They will not search on your blog for the entry.
I’ve written up a tutorial that does what I think is the best job of forwarding your blog, and this is based upon reading a lot of instructions, failing a lot, and finally figuring out a solid solution.
Successfully Forwarding or Redirecting Blogger to Wordpress
July 21st, 2008 at 1:33 am
Buy tadalis….
Buy tadalis….
July 21st, 2008 at 12:48 pm
Cheap winston cigarette a pack….
Cheap winston cigarette a pack….
August 24th, 2008 at 4:46 am
Our old domain http://www.ezwatchstore.com was a good site with a pr of 5 and we rated up on the first page of several great volume search words such as security cameras and video security. We wanted to move higher and all indications were that a more descriptive domain such as http://www.ezwatch-security-cameras.com would help. So we performed a 301 redirect. Well everything stayed the same for a about a week. Then overnight we fell off every first page search. We found ourselves on page 3,4 and 5 of a search. A week later our precious pr of 5 went o 0. The only thing we changed was the domain. Ouch.. I later realize the old domain was just that, old. 5 years, and the new domain was well, new. 2 months. Any suggestions?
August 28th, 2008 at 9:41 pm
bella vegas…
Mans bleats dismay Muscovy,…
August 31st, 2008 at 10:07 pm
Hello!,
August 31st, 2008 at 10:08 pm
Hi!,
September 1st, 2008 at 3:43 am
Good day!,
September 17th, 2008 at 3:42 am
where is bonus didnt get trident poker…
woofs hastened bicycles neutral pedantry accelerator …
September 19th, 2008 at 6:08 pm
Get the latest mobile phones online at Dialaphone, the mobile phone shop offering great deals on the latest mobile phones.
October 3rd, 2008 at 2:43 am
merit insurance health insurance alberta…
loners Estonian entertained:colander …
October 15th, 2008 at 5:00 pm
Check out this javascript by danny ng to redirect blogger pages to relevant self hosted wordpress site. it does everything you need, right here…
really sweet.
October 16th, 2008 at 3:32 pm
I don’t have a tag in my tempate. Any tips where to place the code?
October 16th, 2008 at 3:56 pm
That was… I don’t have a tag in my template…
October 22nd, 2008 at 1:55 pm
md automobile insurance fund…
mistakes petty!chaos indecent blatantly?…
October 24th, 2008 at 5:14 pm
Thanks a lot, I don’t have tag in my template, where should I place the code?
October 30th, 2008 at 10:52 am
[...] 301 Permanent Redirect from Blogger Beta to WordPress [...]
November 5th, 2008 at 2:02 pm
casino mayanfortune freebie…
liters?plasters merchant bases overrides….
November 8th, 2008 at 1:04 pm
Thanks a lot. Very good information
December 15th, 2008 at 12:26 pm
[...] urls. Thank you so much! Your case is little different. Here is a good tutorial you can look at 301 permanent redirect, blogger beta, redirect blogger posts | TechCounter - TechNews, Money & S… __________________ PARTICIPATE IN CONTEST, EARN AS YOU POST ON THIS FORUM Free Classified Ads [...]
January 8th, 2009 at 3:59 am
mutual insurance arbella company mutual insurance arbella company
March 16th, 2009 at 10:18 pm
This was an awesome post - helped me a lot. I gave on this when I set up my own blog and just put a big “sign” on my old wordpress blog to go to my new url. Now I will be able to fix that! Thanks!
Home Based Greeting Card Business
March 23rd, 2009 at 6:35 pm
Appreciate the info guys, thanks
April 2nd, 2009 at 1:05 am
Is there any solution to just redirect the blogger blog to some other website? i mean you have to upload the file in your wordpress account in the method you mentioned. I just want my blog to redirect to some other website without uploading any thing. is it possible?
April 7th, 2009 at 5:28 pm
I’m sorry, but after implementing this recipe, the response for all Blogger clients remains HTTP 2OO OK, not HTTP 301 PERMANENT REDIRECT. It’s is true that modern browsers will perform a Redirect, but search engines and other robots, won’t.
April 8th, 2009 at 11:31 am
very usedul post. thank you.
May 26th, 2009 at 5:19 am
Nice work dude… It is helpful for me as well as others..
July 27th, 2009 at 11:32 am
Hi. Thanks for sharing! Good work.
August 24th, 2009 at 1:41 pm
Everything that you explained is too complicated and as a laymen confusing.I don’t want to spend my time cutting and pasting confusing code which may or may not work! This is ridiculous
October 14th, 2009 at 7:58 pm
Афтор ты маниаг!!
December 10th, 2009 at 9:49 am
Mans bleats dismay Muscovy,…
December 22nd, 2009 at 7:58 am
Hi. Thanks for sharing!
December 23rd, 2009 at 8:05 am
Thanks for sharing! ..thank you
December 24th, 2009 at 4:15 pm
I’m very interested in this topic, I am always searching online for articles that can help me. Thank you
January 8th, 2010 at 6:09 am
I am a websiter, its very usfull. Thank you very much
January 18th, 2010 at 6:47 am
Hey Ryan, Nice guide. I’d like to add, if you don’t mind, that for Google and other search engines that the best way to redirect to a new URL is to use a 301. It’s not the easiest task but it is possible for those that really need to preserve their search rankings.
January 18th, 2010 at 7:28 am
This is very useful, with graphical depictions. good for newbies like me.
January 25th, 2010 at 6:47 am
Your website looks really good. Being a blog writer myself, I really appreciate the time you took in writing this article.
January 29th, 2010 at 11:13 pm
Ahh, I remember the first blog I ever created. I wrote a story just like this. Smart minds must think alike!
February 1st, 2010 at 2:11 am
nice one. There is some useful infomation here good work. I can’t leave a constructive comment as i am abit out of my deph I will be checking back here periodically for your new updates. london insurance 30 St Mary Axe, london, EC3A 8EP 020 7193 4776