Move From Blogger To WordPress and Maintain Permalinks And Traffic

While moving from blogger to WordPress is dead easy using the inbuilt blogger importer tool in WordPress, there is one dilemma/problem that a lot of people face, after importing from blogger, WordPress does not maintain the Permalinks(post slugs) i.e. the URL of the blog posts. I did a bit of hunting around and I found a solution it a really simple hack thanks to David Pascoe who provided the solution to this problem. I have tested this out and it works perfectly, you can move from blogger to WordPress and maintain your post URL or Permalinks (Post Slugs), hence maintaining your Google Search Traffic and Page rank without losing out on any Traffic. It took me less than 15 minutes to go through the whole process. (But It might take you longer if your new to WordPress)

Reasons to move from Blogger.

  1. Cutting edge and the very best blogging Software. Comparing Blogger and WordPress, WordPress beats Blogger hands down.
  2. Huge Community Which means Thousands of free cool Themes and Templates and Plugins.
  3. Easier blogging, better commenting system, spam fighting etc etc.

Draw Backs of Moving from Blogger to WordPress.

  1. Importing from Blogger to WordPress doesn’t import your blogger hosted pictures, they’ll still remain on Blogger, they’ll be visible for sometime but since Blogger doesn’t allow hot-linking you won’t seen them after sometime (Read about it here from the official Google FAQ), so you’ll need to move them maually to your webhost or to some photo hosting service. Luckily for most people this is not a big problem since most bloggers host their images on Flickr or Photobucket. For the more Geeky you can check out this Plugin or this shell command to move your pictures to your own domain.

I thought I would write a step-by-step tutorial since a lot of other people/bloggers will find this extremely useful. I am using as an example.

I am assuming a few things here.

  1. You know how to run and install WordPress. (Here are some Step-by-Step Guides to install WordPress on your Local computer Or To Install it on your Webhost Look at the Installation Section)
  2. You are using Blogger Beta (I guess by now everyone has been forced to migrate to the new blogger Beta by Google)
  3. You are hosted on your own domain like (for people trying to move from I have posted extra steps you need to follow at the end)

How To move from Blogger To WordPress and Maintain your URL/Permalinks/post-slugs and Traffic

1. Install a Temporary WordPress Installation.

The first step is to Install a temporary WordPress installation either on your local Computer on in a temporary directory on your web host. The reason why we are installing WordPress on a temporary location is that, since we need to get all the posts from to WordPress then, delete the blogger installation, then Install a fresh WordPress Installation on and then put back all the Posts. We will use this temporary WordPress installation to import all your blog posts and comments and to test and see if all your blog posts and original Permalinks or URL’s are being maintained. After Installing WordPress Go To Manage Posts and Pages and Delete the dummy Hello world Post and the About us page these get created automatically when you first install WordPress. Learning how to install and enableing Permalinks is the only difficult part here, the rest is extremely easy.

Important Note: If you are installing WordPress on your local machine make sure you can use Permalinks. The step-by-step tutorial to install WordPress that I provided above shows you how to enable Permalinks it is given at the very last under the notes section.

2. Modify the Blogger Importer.

Don’t worry there is nothing much to do just download this file [download#4#nohits] and replace it with the original file located at wordpress/wp-admin/import/blogger.php

For the more technically inclined here are the changes that I made to the Blogger.php File thanks to David Pascoe

Open the file WordPress/wp-admin/import/blogger.php and look for the line containing the string wp_insert_post – at around line 520. Insert these 2 lines after the call to wp_insert_post; Note: The second and third line need to be in one single Line I had to break into two lines to fit it in.

preg_match("/([^/]+).html$/", $entry->old_permalink ,$matches);
$wpdb->query("UPDATE $wpdb->posts SET post_name =
'" . $matches[1] . "' WHERE ID = '$post_id'");

3. Import All the Post and Comments From Blogger to WordPress Using the Importer.

Go to Mange > Import > Blogger

You’ll be presented with a option to Authorize the Importing process Click Authorize

You’ll be asked to Enter your Google User Name and Password.

After which you need to Click the Grant Access Button.

You’ll be shown a list of all the blogs you own on blogger and the number of posts and comments. Click the blog that you want to import.

Once you click the import button you’ll see a progress Bar as the comments and Posts get imported. Once its Done the Text in the Button gets changed to Set Authors Click this.

You will See your blogger username (if you have multiple authors you see them too) select Admin(This is the default WordPress user) from the drop down list and click save changes.

That’s it your done your done with importing your blog Posts. yay

4. Changing Your URL (Permalinks or Post slugs) to Maintain Your Google Juice and Page Rank

Ok here’s the part you’ve been waiting for its pretty easy go to Options > Permalinks

Change the selection from Default to Custom

Enter the Following text in the Custom Structure Textbox to


Note: If you’ve installed WordPress on your local system computer using Xampp like I mentioned above you’ll need to enable Permalinks. The step-by-step tutorial to install WordPress that I provided above shows you how to enable Permalinks under Xampp it is given at the very last under the notes section. After you’ve enabled it you’ll need enter


instead of the text I have provided above.

Your done.

5. Checking Your URLs and Permalinks

Once your done just check your URLs to see if they are the same. The parts Highlighted in Bold are the ones you need to check

Original URL:

URL after Importing:


Move Everything To Fresh WordPress Installation

Once you are satisfied with everything, go to your temporary WordPress Installation Manage > Export Click the Download Export File. Download and save the XML file.

Delete your Blogger Installation and files Except your Image Directory i.e. if you have one.

Install a Fresh Copy Of WordPress in your Original Blog Location Example if your Blog was at then you need to install WordPress in the root if it was at kiruba/blog then you need to install WordPress in a directory called blog.

Import The XML file which you saved before Mange > Import > WordPress Browse and upload the file.

Select Admin from the Drop Down Box and press submit.

Repeat Step 4 to Switch on Permalinks that’s it your done do a Google search for any of your posts if your posts turns up that means you migrated to WordPress successfully while maintaining your Permalinks or URLs.

Extra Steps for Redirecting Your Traffic For Bloggers Moving From A BlogSpot Subdomain.

There are two ways to go about this. One is the quick and dirty way which is also a bit difficult the other is the long way which is the easiest.

The slow and easy way to move from a blogspot Subdomain.

I would recommend you to follow this rather than the quick and dirty way.

Here’s what you need to do.

  1. Buy your own domain.
  2. Use that Custom Domain Option. See this Step-by-Step Guide on configuring Custom Domains.
  3. Your original Blog*Spot address will automatically forward to your new domain. That way, any existing links or bookmarks and search traffic to your site will still work.
  4. Wait for 5-6 months for all search engines to update their data and links to your new site.
  5. Follow the Steps I have outlined above.

The Quick and Dirty way to move from a blogspot Subdomain.

I do not recommend this. Do this only if you are really eager and want to move quickly. See this guide here

21 Responses

Great post, really

Great tutorial, I found you via the ETC blog (

To start, I am not good at all this stuff, so pardon me if these questions are dumb. I’ve been wanting to move, and was worried about my google searches etc etc, which your article takes care of. But what about links that just link to my start/home page? I have some sources that list me as a “blog to read” and top ten sources, as well as an article in Parents magazine. Since those aren’t article permalinks, am I assuming correctly that if I move those will just turn into broken links?

@jenn Just look at the very last step I have outlined for people on a Blogspot Subdomain like you. Just buy a domain and use bloggers custom domains. Blogger will take care of the redirection. So when some when links to your old URL it will automatically redirect to the new one. If you want more technical information google for 301 redirects. Hope that helps. Contact me if you have anymore doubts.

thanks a lot :)

Very well written. Great job always.

This is by far the best step by step post about import from Blogger into WordPress.


This is a very useful post for anyone using Blogger. Thanks for putting it together!

Do you know how to do something similar with TypePad or can you point me in the right direction of someone who might? I’ve tried to search for it but haven’t been very successful in finding anything useful. Thanks in advance!

do anybody have an idea why this message appears when I want to import blogger beta to WP 2.2.1

The “next” parameter is not correct or not present.

Impossible d’afficher la page que vous avez demandée. Un autre site a demandé à accéder à votre compte Google, mais sa demande n’était pas rédigée correctement. Contactez le site que vous souhaitiez visiter lorsque vous avez reçu ce message afin de leur faire part de ce problème. Voici le message d’erreur détaillé :

please help.

@ipub I am not sure why its happening maybe its because you are trying to import a non-English blog. Try the forum I am sure folks there will be able to help you out.

Any idea how to make this work if you’ve been FTP’ing to your own domain from Blogger? The importer won’t work for FTP blogs – it sees the blog listings, but won’t show any posts.

Thanks for the great step-by-step!

I also want to migrate as it seems that WP has a lot more to offer (I find Blogger not e be intuitive nor easy to configure, plus, they only let you do the thing they like themselves). Of course, blogger is free and let’s you put in ads… So for testing purposes this is very good.

Like Dan, I want to know about changing my FTP hosted blog – from blogger to my own domain… I have as the url for my blogger blog it is being FTP’ed from and dumps my posts onto my site via FTP.

I want to change this blog to a blog and local installation in that subdirectory ( Is this tutorial FOR that? I think so – but you never specify that this tutorial is for FTP’ed blogs from blogger.

Thanks for your help!


I found out why the import does not work: blogger recently changed its site, so you need to look for the 2 lines that say and change them to
Then it works fine.

i had the same problem when i shifted from blogger to WordPress. the sad thing is i never had the chance to get this technique or “hack” before i had the chance to improve m blogs in wordpress. good post though.

good post. this has been plaguing a lot of people who want to migrate from blogger to wordpress.

jessie » With the new wordpress 2.3 release this hack is not really required. Since wordpress 2.3 has something called canonical urls.

I’m trying to migrate a blog for my friend by your process. He has been on blogger with custom domain for 4months now.

My Q is, when I import posts and setup WP, and change the nameservers to point to the new blog, won’t direct links be harmed?

Or will the redirection take place even after switching nameservers (but without changing the settings of custom domain in control panel of blogger)?

its not true that it is dead easy to import Blogger posts to wordpress because it is returning me an error even if i already “granted access” to wordpress to fetch my blogger posts, still it says it cannot because there is trouble signing in..whats up with this? it seems to be an isolated case unfortunately it was to be ME!

When I moved one of sites from blogger to WP, a lot of problems have been encountered and maybe if I researched more, I shouldn’t have had as many difficulties as I had encountered. Migrating from one publishing tool to another is really a pain in the b*tt.

This is very good, but if you can’t get the redirection to work, you have to try something else. I moved from Blogger to WordPress and had to do it differently, so read my post on it also if this didn’t work for you.

Is this post still relevant or is there an easier to do this in wordpress 2.6?

thanks a lot for this great tip! i have finally moved my blogger account into wordpress platform including SEO points hopefully, it worked perfectly from my blogger account

nice ! keep it up!