Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

How to Switch from Blogger to WordPress without Losing Google Rankings

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Switch from Blogger to WordPress without Losing Google Rankings

Blogger is an awesome free tool to quickly start blogging. However, many Blogger users eventually realize that if they want full control of their blog, then they would be better off with their own self hosted blog (what’s the difference between self-hosted vs blogs). In this step by step tutorial, we will help you switch from Blogger to WordPress without losing Google rankings.

Safely moving a Blogger blog to WordPress

Here are the steps you will be taking to switch from Blogger to WordPress without losing Google rankings.

  1. Sign up with WordPress hosting company.
  2. Export your Blogger blog by visiting Settings » Other page.
  3. Import Blogger to WordPress by visiting Tools » Import page in WordPress admin area.
  4. Setting up permalinks on your new WordPress blog.
  5. Setting up redirects for Blogger visitors to WordPress posts
  6. Set up redirects for RSS feeds
  7. Import your images from Blogger to WordPress media library.

Video Tutorial

If you don’t like the video or need more instructions, then continue reading.

Step 0. Before You Start

To get started with WordPress, the first thing you would need is a good WordPress hosting company and your own domain name. We highly recommend Bluehost because they will give you a free domain and 50% off their hosting plan (special for WPBeginner users). Bluehost is also an officially recommended hosting provider of WordPress.

If you want a Bluehost alternative, then take a look at Siteground who also offer the same special offer to WPBeginner users.

Once you have signed up for WordPress hosting and set up your domain name, the next step is to install WordPress on your hosting account. We have a step by step tutorial on how to install WordPress. Once you have installed WordPress, it is time to move your content from Blogger to WordPress.

Step 1. Export Your Blogger Blog

First thing you need to do is export your blogger blog’s content. Simply log into your blogger dashboard and go to Settings » Other page. Under the ‘Import & back up’ section, you need to ‘Back up Content’ button.

Export your Blogger blog backup

This will bring up a popup where you need to click on the ‘Save to your computer’ button.

Download your Blogger blog's backup file to your computer

Your Blogger blog’s content will be downloaded to your computer in an XML file.

Once the download is complete, it is time to import it into your WordPress site.

Step 2. Import Blogger to WordPress

To start importing your Blogger site into WordPress, you need to go to your WordPress admin and visit Tools » Import. On the Import page, click on Blogger.

Blogger importer under WordPress import tools

This will bring up a popup asking you to install the Blogger to WordPress importer. You need to click on the Insall button.

WordPress will now download and install the Blogger Importer plugin for you. Once it is finished installing, you would need to click on the Activate Plugin and Run Importer link to continue.

Activate and run blogger importer

On the Import Blogger screen, WordPress will ask you to upload the XML file. This is the file that you downloaded in Step 1.

Simply click on the choose file button and upload the XML file you downloaded earlier. Next, click on the Upload file and import button to continue.

Upload Blogger export file to WordPress

Now if you didn’t select one of our recommended hosts or your site is really large, you may get an error that your file size is too large. In this case, you would need to increase your maximum file upload limit. If your file is small, then you won’t see any errors.

WordPress will now import your blogger posts one by one. When it is finished, you will be asked to assign an author to the imported posts. You can assign your blogger posts to an existing author (you) or create a new author account.

Congratulations! you have successfully imported your Blogger content into WordPress. However, you still need to make sure that you don’t loose any search rankings and that visitors from your old blog easily land to the same content on your new WordPress website.

Step 3. Setting up Permalinks

Permalinks is the term used for URL structure of individual pages. WordPress comes with a feature that allows you to set up SEO friendly URL structure. However, since you are importing content from Blogger, you would want your URL structure to be as close to your Blogger URL structure as possible.

To set permalinks, you need to go to Settings » Permalinks screen and choose Month and Name as your permalink structure.

Choosing a permalink structure for your WordPress site

Step 4. Setting up Redirection

The most important step in moving any website is to set up proper redirection so that users are redirected to your new website.

The important part of redirection is that you want users to land on exactly the same page on the new site which they were trying to access on the old site. Secondly, this also notifies search engines that your old site is moved to a new location.

To successfully move from Blogger to WordPress, you need to set up redirection on two levels.

First, you will redirect Blogger visitors to your new WordPress blog. Second, once users reach your WordPress site, you will redirect them to the exact post they were trying to read.

Let’s first set up redirection on the blogger blog. You need to log on to your Blogger account and go to your Blog’s settings and click on Template.

Blogger Template

On the template page, you need to scroll down to the bottom of the page and click on Revert to Classic Template link.

Revert to classic template for your Blogger blog

After switching to classic template, you will see ‘Edit Template HTML’ textarea. You need to replace everything in this text area with the following code. Make sure that you replace with your own domain name.



   <link rel="canonical" href="" />

    <link rel="canonical" href="<$BlogItemPermalinkURL$>" />

   <h1><a href=""><$BlogTitle$></a></h1>
    <h1><a href="<$BlogItemPermalinkURL$>"><$BlogItemTitle$></a></h1>

Save your template, and you have successfully implemented redirection on your Blogger blog.

However, you still need to setup redirection on your WordPress site so that users are redirected to the proper posts.

You need to copy and paste the following code in your WordPress theme’s functions.php file or in a site-specific plugin.

If this is your first time adding code to your WordPress site, then you may want to check our beginner’s guide to pasting snippets from the web into WordPress.

function blogger_query_vars_filter( $vars ) {
  $vars[] = "blogger";
  return $vars;
add_filter('query_vars', 'blogger_query_vars_filter');
function blogger_template_redirect() {
  global $wp_query;
  $blogger = $wp_query->query_vars['blogger'];
  if ( isset ( $blogger ) ) {
    wp_redirect( get_wordpress_url ( $blogger ) , 301 );
add_action( 'template_redirect', 'blogger_template_redirect' );
function get_wordpress_url($blogger) {
  if ( preg_match('@^(?:https?://)?([^/]+)(.*)@i', $blogger, $url_parts) ) {
    $query = new WP_Query ( 
      array ( "meta_key" => "blogger_permalink", "meta_value" => $url_parts[2] ) );
    if ($query->have_posts()) { 
      $url = get_permalink(); 
  return $url ? $url : home_url();

The code above creates a blogger to WordPress 301 redirect which is what you need to ensure best SEO.

Once you have pasted this code, that’s all you need to do for setting up redirection.

Now anyone visiting a post on your old Blogger blog will be redirected to the same post on your new WordPress site.

Step 5. Redirect Feeds

Your RSS subscribers on the old Blogger site will not be able to notice the switch. That’s why you will need to redirect your Blogger feed to your new WordPress site’s feed.

You can do this by logging in to your Blogger account and then visit Settings » Other page under your blog dashboard.

Under the Site Feed section, click on Add link next to Post Feed Redirect URL. Here you can enter your new WordPress site’s feed address.

Usually it is (don’t forget to replace your-awesome-site with your own domain name).

Redirect blogger feed readers to your WordPress feed

Step 6. Import Images From Blogger to WordPress Media Library

When you are transferring blogger to WordPress, the WordPress importer will download images from your blogger posts into the WordPress media library. However, it can fail to download some images. This doesn’t happen often, but it can happen.

But there’s nothing to worry about because you can find and import these images into WordPress. Follow the instructions in our how to import external images in WordPress tutorial.

This will import all images from your blogger into your WordPress Media Library. Once the images are in your WordPress media library, you can easily create image galleries and more.

We hope this tutorial helped you switch from Blogger to WordPress without losing Google rankings. We would like to welcome you to the WordPress community. To get started with WordPress, please take a look at our beginner’s guide section and our WordPress beginner videos.

If you have a friend still using Blogger, then you can show them our comparison on WordPress vs Blogger and convince them to switch over.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Nicole says:

    Thank you for these instrucionts-I have finished with step 4-the first step. I added your code and the visitors are redirected to my new website. But it takes a while until the page is loading and there are displayed some numbers. 01 02 03 04 05 on the screen. It looks not so nice—could it be replaced-or how to make it faster?

    I also dont know how to do the last step with the php-code. My enfold theme has a functions-php and a functions-enfold.php. I already tried the code at the end of the functions.php-with no effect. I deleted it again.

    Could you give me a hint what to search for or to test?

    Thank you in advance

  2. Dipankar says:

    Thank you so much! migration is successful .

    now please tell me what to do with sitemap of old blogger as well as wordpress?

  3. Gurunath says:

    Hi, I have done the process of Blogger to WP migration step by step and I did get migration successfully. But the problem is I have done all the plugins and theme customization and while doing configuration of Yoast SEO Plugin and exactly when I was adding the google webmaster tools verification and when pressed the save button it said “can’t verify site” and the site is down. now when I am entering the URL from the blog spot or direct is asking for install WordPress thing …how to solve this? please help it out

  4. Mahesh suthar says:

    I have migrated from blogger to wordpress, i was having custom domain, but after migration my older links with custom domain are not redirecting to the newer link generated in wordpress. I have changed the permalink as per your article. Please help me.

  5. Ömür Yanıkoğlu says:

    Thanks to you, I have solved my problem. This is very useful article :)

  6. Timmy Brain says:

    I’d followed the guide duly but the import blogger plugin gives me an error note of some lines are missing.

  7. Abigail says:

    I have tried EVERYTHING I can to try to redirect my blogger to wordpress site. I have input the code you have on here multiple MULTIPLE times, and I can’t for the life of me get it to work. The worst part is, now my old blogger blog is GONE and now my readers aren’t going to know what is going on. If you could please email me I would really appreciate it.

    • WPBeginner Support says:

      Hi Abigail,

      If you followed the instructions, then your old Blogger blog isn’t gone. It is still there and you can switch back to it. Simply login to your blogger dashboard, go to Templates. Click on the Upgrade Template button and then select a new template for your blogger blog. Your Blogger blog will now become visible again.

      However, we believe that you probably still want to move to WordPress. We will advice you not to give up, there is probably some tiny thing that you are missing. Follow the steps carefully again, and you will be able to properly redirect your readers to your new WordPress site.

      Good luck

  8. Samuel says:

    My website is not opening after i updated it. Hello please i need help on this; i login to my wp-admin dashboard and see a notification message from wordpress that i’m using an whole version of wordpress that i should upgrade to the latest version. I follow the instruction to updates my wordpress sites but after a successful update my webpages are not opening again. It will just be loading and reloading without anything displaying. And why it is loading it will be displaying a blink of blogger icon.

  9. Satish Kushwaha says:

    Still unable to resolve 404 error not found

    • Sheetal says:

      Hello, Satish Kindly contact your web hoster. Even I used to get this error and bluhost resolved it.

  10. LIz says:

    I was fine until I went to settings and there is not migrate blog only delete and back up? What now?

    • WPBeginner Support says:

      @Liz: You need to click on the Back up Content button. We have updated the article, with new screenshots. Instead of export, the feature is now called Backup.

  11. Mike Gil says:


    First thanks for this tutorial, Im done migrating my site from blogger to wordpress. The problem is when I search my posts on google and click a link from blogger, it will redirect me to wordpress with .html on the link so it gibes error 404. I hope you can help me.

    Thank you.

  12. Gagan kamboj says:

    I have imported all the blogspot content to wp ….. Now should i delete the blogger blog??

  13. Andrew says:

    Hey, I got everything over and redirected just fine. Thanks for the great videos!
    But, I realize I need to get more info off the blogspot site. I am being redirected even from withing the blogger console. How do I access my blogger site now that the redirects are up?


  14. md qureshi says:

    after transfer my blogger blog to wordpress in the google search when i click on post a 404 page not found show how can I fix them?

  15. Navdeep says:

    I have a custom domain name setup on my blogger blog. Do I have to first remove it from my blog to follow the above steps? Please help.

  16. Rajesh says:

    I had successfully imported my blog into my wordpress website. it was very helpful thanks for this wonderful help. Now if i post a new blog at blogger .com then will it automatically feed into website. or should i posts on my website only. i posted a new post on but that post didn’t feed in website. please guide me. thank you.

  17. Tonya Wilhelm says:

    Thank, you. I’m going to try…a bit scared! This won’t be considered duplicate content, will it? It will disappear from blogger and move to wordpress?

    • WPBeginner Support says:

      Yes, your Blogger content will no longer be visible to search engines as they will be redirected to your WordPress site.

  18. Nixy says:


    Thanks for your wonderful tutorial.

    I have migrated my blogger blog to WordPress. But I have 2 specific problem. Can you please help?

    1) If I search my blog from a mobile device, and click the link, redirect doesn’t happen.
    2) I have 2 pages on my blogger blog. Say About and Contact, but the redirection doesn’t happen for them.

    Your help will be highly appreciated.

    With thanks,

    • John says:

      If the mobile redirect does not work, try to disable the mobile template first (before reverting to the classic template in step 4). This should prevent blogger from adding “?m=1” to the URL, which is why the redirect from mobile doesn’t happen. Hope that helps!

  19. Jamal says:

    Hello! Thanks for the post, very helpful.

    One thing though. On Redirect Checker it says that my redirect is a 303 one

  20. Sagar Nangare says:


    I want to redirect to from my old blog URLs. I tried your steps but it did not help. It is redirecting to main home URL. that is Please help with this one

  21. Beini says:

    Trying to do this but I don’t seem to have a permalink settings tab under settings!

  22. Cat Larkin says:

    When editing your functions.php file – will those edits hold when you update your theme or when you do WordPress updates, or do you have to do this each time you update? Or do I need to be working with a child theme?

    Also – If I plan to change themes, should I do that before I make the change to the functions.php – thus only doing it once?

    Great tutorial – thanks

    • WPBeginner Support says:

      Your theme’s functions.php file will get overwritten when you update the theme. To deal with this you can create a child theme and add custom code to child theme’s functions.php file. However, if you switch themes then you will have to copy paste the code.

      Another approach is to use a site-specific plugin. It remains out of your theme and does not get’s in the way when you update any WordPress core, plugin, or theme files.

  23. Ransom says:

    To My Google Blog I Don’t See Export Or Import I Only See Import And Backup,

    • Lemonberry says:

      I also don’t see an export button, only an Import button and a Back up Content button and was wondering if there is something I’m missing…?

  24. Ali Asghar says:

    Hey, currently my blog is and I want to shift it to
    1) Is it possible?
    2) Will the total views would show too or we would have to start from 0?
    Kindly please reply to my question :)
    Great post and great video! :)

  25. aravind says:

    I have a question. After blogger to wordpress migration and redirection, What to do with blogger posts? I can delete them?

  26. karamath says:

    I was thinking to hire some one to migrate my blog but now iam capable of migrating myself.

    I will also post my experience of migration process. Really helpful post.


  27. Lucy Edwards says:

    Thanks for this- I’ve taken all the steps but the redirect doesn’t seem to be working properly for me. It works on a desktop computer, but from mobile devices the link still take you to my old blog. Any ideas what has gone wrong?

  28. justice ozuruigbo says:

    If i import my blogger posts to wordpress, will it still bear the original dates?

  29. Jamie says:

    Thankyou! Painless and concise. My kinda tutorial :)

  30. Sheetal says:

    Thanks for this article. I have successfully migrated my blogspot blog to wordpress. I just wanted to know that should I deactivate blogger importer plugin or not ? Thanks :)

  31. JP Mishra says:

    Can we export blog to drupal or joomla?

  32. Gail says:

    Thank you a million times over! I really am new to all this, but your step by step tutorial on how to switch to WP worked for me the very first time! My redirects and everything (at least that I’ve checked so far) are working great! Thank you again, you made this so much easier than what I expected!

  33. Jen says:

    Thank you so much for the awesome tutorial! It was easy to follow. But I only have one problem. Some of my pictures didn’t transfer and I did Step 6. I think it may be because those pictures were from my Google Drive. Is there a way to transfer them or would I manually have to upload those images again? Thanks for your help.

  34. Paige says:

    Love this site so much! So question is when I copy and paste the lines get all jumbled when I try to paste it into my php thingy. I deleted it because I was scared I would blow something up on my site. Is there a way to make my paste look like what I copied?

    • WPBeginner Support says:

      Take your mouse over to code snippet on our site and you will see a viewsource button at the top right corner of the snippet. Clicking on it will open the source code in new popup window. Copy that code and then paste it.

  35. Rena says:

    PLEASE HELP! I did everything your post and video says but for some reason when I click on an old link for a specific post, it redirects to the .com but to the homepage, not the actual post.
    How can I fix this?
    For example, which I click on this-

    it brings me to this-

    THANK YOU!!!

    • satz says:

      make sure the destination of your wordpress post slug are the same with your old blogger post slug. for example if your blogpost url are then make sure your wordpress url are

  36. Bharat says:


    These lines of code are giving an error in blogger.

    Error parsing XML, line 3, column 11: The content of elements must consist of well-formed character data or markup.

  37. Christopher says:

    I’m having issues on the 301 redirection. I’m Using News pro genesis child theme, should i paste the code in the function.php of the child theme or function.php of Genesis frame work?

  38. Barry O'Leary says:

    Thanks so much have managed to migrate a blog of over 200 posts to a new one and not lost anything. Great stuff! Thanks.

  39. Heike says:

    Thank you for this tutorial! Everything moved over fine, except the pictures. Can you advise?

    • WPBeginner Support says:

      Looks like you already resolved the issue :)

      • Heike says:

        Yes, I uploaded another plug in that transfered the photos too. Unfortunately, now all posts are double, with the same publishing date. This means I get to go back and reminisce while I delete doubles! Still, I appreciate the tutorial, it really helps to have both the video and written instructions. Also, why do I have to go into the FTP for each template? You mentioned if I change templates, to do this again?

  40. Susan says:

    Hi there. I’m really frustrated. I posted a comment on Apr. 6 but haven’t heard back from anyone.

    I followed the instructions on how to switch from blogger to wordpress. And I made a site-specific plugin because I was nervous about messing with the functions.php code to put in that redirect code.

    Here’s the problem: with that site-specific plugin activated on my website (, if I click on a link to a blog post that was on my old blogger site, it redirects to my new homepage… which is great, but my goal is to have a person go directly to the SAME post on my new website and not to my homepage.

    What am I doing wrong? I’m losing sleep over this so please help ASAP! (and if anyone else sees this and knows what’s wrong, please comment. I’d really appreciate it!) Thanks.

    • Christopher says:

      I’m also having the same issues. Have you been able to solve yours? If yes, How?

      • Susan says:

        Hi, Christopher. I’ve heard from anyone about this. Have no idea how to solve this problem as I’ve done everything to the letter. Very frustrating. I wish someone would help us out with this problem. Sooo, if anyone out there experienced this, would you please let us know how you solved it so folks are directed from an old Blogger post to the SAME post on WordPress? Thank you.

        • Susan says:

          Sorry, meant to say “I haven’t heard from anyone about this.”

        • Christopher says:

          Hello, Susan. Hope you are good?

          I was able to redirect mine but I had to purchase Yoast SEO premium . Yoast did all the redirection for me.

  41. Kadi says:

    I don’t have the blog tools or export in blogger. Mine just says delete blog.????

    • Kris says:

      I’m having the same problem Kadi is having – blogger doesn’t give me the “import/export” option, just “delete blog”. Would love to hear how to export from blogger to WP or it’ll be a lot of cut & pasting. :) Thanks!

    • Christopher says:

      Above “Delete Blog” you should see ‘Import Content’ and “Backup content”. Just click on Backup content. Hope it works for you.

  42. balu says:

    Hello! Editorial Staff.
    I have a problem.
    I recently migrated from blogger to wordpress as you said in this tutorial. And also done changes in blogger template and in feed redirection. But posts are not redirecting from search results and also in post internal links.
    What is the problem. I have also blogger custom domain. What to do?

  43. Susan says:

    I have a question re: setting up the permalinks. On blogger, this is the format of the links to my blog posts:


    On WordPress, this is the format of the links to my blog posts:


    So the differences are the underscores on blogger, plus the day, plus the “.html” on the end.

    How would I resolve this? Do search engines automatically “translate” the underscores into slashes? And do they ignore the “.html”?

    If this is the case, perhaps I would need to make a custom permalink that is something like this:


    Could this work? Thanks in advance for your help.

  44. Adam G says:

    Thanks for the info– however, my blog is currently on blogger as its own domain name. How do I do the redirection if I’m going to switch the name over to wordpress as well?

    My blog is currently I use blogger, but want to switch to wordpress, but continue to use

  45. Martyna says:

    Any of you experiencing 403 error after all of this. Contacted the domain hoster and said it probably the issue with the plugin that being used. Anyone else experienced that?

  46. SMLocke says:

    Thank you so much for this post, it is just what i was looking for. However, I am having an issue withe the 301 redirects. When a page is redirected, it is looking for whereas the permalinks in wordpress are That is, to be more succint, the URI ends with a ‘/’ instead of ‘.html’. Is there a way to remedy this.

    • Susan says:

      Hi, SMLOCKE. Did you get a response on this because I’m having the same problem with the lack of an .html causing a 404 not found error. Thanks.

    • Kareem says:

      Use the following customized permalink:

      It worked for me.


      • Stacy Ann says:

        Can I say I love you to a stranger? Thank you so much! That custom link did the trick! I even called my hosting support and they couldn’t! You are awesome!!!!!!

  47. Archna says:


    I’ve done everything explained above but stuck in the wordpress 301 redirection process

    Parse error: syntax error, unexpected ‘<' in /home/manage1991/public_html/wp-content/themes/aqueduct/functions.php on line 446

    Redirection Code for Posts
    <?php ////Line 446

    function blogger_query_vars_filter( $vars ) {

    $vars[] = "blogger";

    return $vars;


  48. thebdxoul says:

    This is best wordpress blog ever

  49. Mini says:

    This useful even for moving free blog on blogspot to free blog on wordpress?
    And will it transfer previously received comments too?

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.