How to Transfer Blogger To Wordpress?

transfer blogger to wordpressWhenever, we think about the history of most productive Blogging platform the first word which clicks our mind is either WordPress or Blogger. Still lots of Well-known bloggers are in doldrums whether to select WordPress, or they should try their luck with Blogger. Blogger and WordPress have been competitors since an elongated period but in the meantime WordPress has developed tremendously, in spite of getting introduced before Blogger. Mohammad has covered lots of posts regarding avoiding Blogger to WordPress conversion but one should always know how to do something, so we may continue to make use of the resources. So in this article, we will cover How To Migrate Blogger to WordPress Blog without losing a single SERP Ranking or Page Rank Juice.
Mohammad himself started his dream Blog on Blogger (MyBloggerTricks) which become the biggest hit of the decade and later on he put everything on the line by starting yet another blog with totally different niche (SmartEarningMetods) but this time he chooses WordPress, and stunningly the results were pretty much similar. This proves that Blogging Platform doesn’t matters a lot. The only thing which is responsible for your success is Quality, Quality, and Quality. 

Note: This guide does not motivate you to shift your blogger blog to Wordpress. It is only an instruction guide for those who are well aware of the challenges faced at Wordpress platform.

Main Goal:

Assume you are currently using a low quality domain i.e. and you want to migrate it from Blogger BlogSpot Blog to WordPress (Self-Hosted Blog) with a professionalized domain i.e.

Problems You Might Face During The Migration:

  • When you transform from Blogger to WordPress, the chances are exceedingly high that you might lose your quality subscribers i.e. Feedburner until or unless you redirect your BlogSpot Feeds to your new WordPress Blog.
  • Rarely your few posts might be ranked well in Google search engine, but after Blogger to WordPress conversion you might notice a noticeable decline in your SERP Rankings. Therefore, you have to keep your Cool until or unless ranking get backs to normal.
  • Human visitors will feel a bit stressed when they will try to visit your blog with OLD bookmarked URLs, if you don’t permanently redirect your old URLs to new one.
  • You need to Learn WordPress in order to get full command on it.  This is the most difficult part to get into plugins and theme. However, experience lead us to success so don’t hesitate and maintain patience.

Ultimate Solutions:

The problem listed above might appear magnificent, but we can minimize their effect by utilizing effective methods. We will simply redirect our OLD blog posts to NEW one so search engine bots don’t get confused in identifying whether we are on Blogger or WordPress.
In this tutorial, we will learn how to switch from Blogger to WordPress without losing your major SERP ranking. We will also discuss how to redirect our old feed to New WordPress Feed, so let’s get back to work.
Step by Step Guide
Before we get started, it will be splendid if you create a dummy blog for experiments. By doing this, you will not only eliminate mistakes and by chance if anything goes wrong you will have the certain satisfaction that you are not working on your main Blog. This will also minimize your errors in the main Blogger to WordPress transformation. Don’t forget to take a Backup of your Blogger Blog i.e. Posts Data as well as Template.

Step#1: If you don’t have a Hosting then what are doing here go ahead and get a cheap domain, as well as Hostgator hosting. We will recommend you to go with Hostgator because those guys are always ready to help.

Step#2: Now you have to import your entire Blogger Blog to WordPress
  • Go to WP-admin Panel >> Import >> Tools >> Blogger
  • Now give permission to WordPress to access your existing Blogger account by pressing the button which says “Authorize”.
  • After granting permission you able to see list of multiple blogs attached to your certain Blogger account, just import that blog which you want to migrate to WordPress by pressing “IMPORT” button. Now after the blog is completely imported give admin right.
import blogger to wordpress

Step#3: Now Copy the following PHP coding and save it into an empty notepad, renaming it to “Blogger.php”. After that you have to use CPanel or any other FTP software to upload it to Your WordPress Theme Directory. Keep in mind you have to Upload it in your Theme Directory i.e. WP-content/themes/your-theme where your-theme is representing your theme’s name.


Template Name: blogger


global $wpdb;

$old_url = $_GET['q'];

if ($old_url != "") {

$permalink = explode("", $old_url);

$q = "SELECT guid FROM $wpdb->posts LEFT JOIN $wpdb->postmeta ".

"ON ($wpdb->posts.ID = $wpdb->postmeta.post_id) WHERE ".

"$wpdb->postmeta.meta_key='blogger_permalink' AND ".


$new_url = $wpdb->get_var($q)? $wpdb->get_var($q) : "/";

header ("HTTP/1.1 301 Moved Permanently");

header("Location: $new_url");


Step#4: After Uploading the PHP file to your WordPress directory
  • Go to WordPress Admin >> Add new Page.
  • In the title write blogger while keeping your post body empty (Don’t use capital “B” in blogger)
  • Now select “blogger” from the templates tool in the sidebar menu and then publish the page.
  • Make sure that your domain structure looks like this
add new page

Step#5: Now you have to redirect your current BlogSpot Blog to WordPress but if you don’t redirect the existing blog Search bot will mark you as spam because you are duplicating your content for the sake of traffic. Just Copy the following Chuck of code and
  • Go to Blogger >> Template >> Revert to Classis Template >>
  • Now you will be able to see a text box, just paste the Code there and save your template. Remember: Replace with your domain name and don’t forget to align http:// as well as trailing slashes with your domain name.

  • revert to classic templates
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="en" lang="en" dir="<$BlogLanguageDirection$>">
<script type="text/javascript">
<MainPage><link rel="canonical" href="" /></MainPage>
<link rel="canonical" href="<$BlogItemPermalinkURL$>" />
<div style="border:#ccc 1px solid; background:#eee; padding:20px; margin:80px;">
<p>This page has moved to a new address.</p>
<MainOrArchivePage><a href=""><$BlogTitle$></a></MainOrArchivePage>
<a href="<$BlogItemPermalinkURL$>"><$BlogItemTitle$></a>
</div> </body></html>
<!-- replace with your WordPress site URL --->

Congratulations! You are successfully migrated to WordPress without losing a single piece of Search engine rankings I guess that deserves Cheers!
Redirecting your old Feed URL to WordPress Feeds:
When you migrate from Blogger from WordPress, your Feed URL might change so to redirect your existing feeds to WordPress
  • Go to Blogger >> Settings >> Site Feed >> Custom Feed >>
  • And now write your new WordPress Feed URL and save it.

Got Questions?

So I Hope you have enjoyed the roller-coaster rider , If you have any problem regarding Blogger to WordPress transformation feel free to leave your comments in the comment box below. Till then Peace, blessings and Happy Migrating.

This is a guest post from Faizan Ali who is a passionate blogger and writes actively at MyBloggerLab.

If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »


We have Zero Tolerance to Spam. Chessy Comments and Comments with 'Links' will be deleted immediately upon our review.
  1. Mohammad, please correct the code in step 3.
    Line numbers not removed from the code.

  2. @Bhavesh Pamecha

    Yes I Assume In Hurry Mohammad Sir Forgot To Remove Numbers. Its Eid so you can expect that. Peace

  3. very nice post it really helps me bcz me trying to transfer my blog from blogger to wordpress. thanks


  4. Its great to see Faizan on MBT with a great mbt start accepting guest post?if yes then it is a great idea. well i think wordpress is good due to large number of plugins but i personally love blogger. For faizan its great to see his new template and BSA and a new author.keep it up bro.

  5. @jalil haider
    Oh! That's Really Cool. However, if you get stuck in middle don't forget to revisit MBT for any Questions or queries. Peace

    @Pramod sharma
    Thanks For the Appreciation Buddy. And Yes, Time changed as well as things got renewed on MBL, specially getting BSA was the best moment. Learned a LOT From MBT and now hopes are even more From Mohammad to Cook Tutorials Like a Master Chef. Peace

  6. Hi muhammad you are doing a Great job, I want a help from you , plz i want a code to add tabs to Html widget , which when opened doesnot refresh or load the whole page , i am searching and doing work on it from a week , but i am failed :\ Please help me out for this.. if any visitor can help , comment here

    Thanks in Advance

  7. This comment has been removed by the author.

  8. @Martin GajurelDude, you have placed a link on your words by wrong way. It will not work.

  9. This comment has been removed by the author.

  10. currently what platform ru using
    iam going for it...

  11. This comment has been removed by the author.

  12. Thank You Very Much! Wish To Learn More on the STEPS Bro =)

  13. This comment has been removed by the author.

  14. @Shahbaz Khan
    You you Want To Redirect .tk to .com then I Think You have to Upload the Whole Data on your .com New Domain and One by One have to redirect each and every post.

  15. Some of you said to delete the number in Step 3, can you explain that more? What part needs to be deleted? Or has it been fixed how it appears now?

  16. @Mike Pease
    Don't Worry Dude, It is Fixed. You can Copy it without any hesitation. Peace

  17. I'm having problems with Step 3. I went to Notepad and created a file with the text and saved it as Blogger.php it saved it as Blogger.php.txt I uploaded it to cPanel Wp themes but it's saved as a text file. I tried again and saved it as "Blogger.php" and it saved it as a php file and I uploaded it. In both cases, it's in the WP Content/Themes area but not as a theme but as txt or php. I go to WP Theme to upload it and it asks for a zip file? I can't get the blogger one to load, help!!!

  18. This comment has been removed by the author.

  19. In cPanel WP Admin/Themes I have the file you posted listed as blogger, but when I go to WP Admin and try to choose the theme, it says, "The following themes are installed but incomplete. Themes must have a stylesheet and a template" Please help!!

  20. Yes, I own domain and hosting on HostGator

  21. @Mike Pease
    Brother You Just Have To Upload Blogger.PHP in the Theme Directory which is currently online on your Blog. Don't make it a Text file. Make it PHP. And Then Follow the Steps it will work.

  22. Nice article... Recently I tried one and it was successful...

  23. IF we transfer all data from blogspot to wordpress.the original data in blogspot will remain or delete?

  24. Thanks Syed, yes, I added the php to my current theme on WP and it worked perfectly!

  25. This comment has been removed by the author.

  26. @Unique Chess GroupAll the Data will remain on BlogSpot Blog but the OLD URLs will redirected to your New URLS so Don't delete your Blogspot blog until or unless Google transfer the Juice to new URLS.

    @Mike Pease

    Great News Buddy. Peace

  27. @Syed
    My idea is that i want data both in blogger and wordpress if i transfer it to wordpress will the data still be in blogger and can i continue posting in blogger?

  28. @Unique Chess Group

    Yes data Will Remained on Blogger when you transfer. You can Still Publish new posts But you cannot view them because you have switched to WordPress

  29. I have followed the same procedure. However in last step, i have taken from you and replaced your domain with my domain and pasted the code in blogger template. However unable to save it and showing errors wherever $ have.

    Kindly let me know how to solve this problem.


  30. @Sankar Datti

    Dude First You have To Revert to Classic Template then Apply the Coding. Peace

  31. Hi, I want to transfer my blog from blogger to wordpress, but I already have a custom domain, so How can I transfer it without change the domain?


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

  33. @José Vega

    The Steps Will be Remained The Same. Don't Think that whether its on blogspot or .com domain. Follow Same Steps. But Remember to Remove Google DNS from your domain. Peace

  34. @Shahbaz Khan

    When You are Getting this Error. I Think you are not following the Steps Correctly.

  35. hello thanks for this tuorial
    please how to transfer using the same domain ?
    suppose i have domain pointing with my blogspot
    my question how to use the same domain on wordpress and in the same time all your post on blogspot ( ) will transfer to wordpress ( )??
    and thanks

  36. are videos are also transferred while using this method of transfer ??? I run a video blog.

  37. we Need Web space ? I mean I have Domain but i dont have hosting space then what to do ? any solution ?

  38. well i followed this now blogger locked my blog says its been indetified as a spam blog wtf

  39. Thanks for the inof, going to try this in my site.

  40. Dear now I use blog spot as blogging platform .you said that word press is better than blog spot. How can i change my blogging platform to WordPress it possible please specify the cost of this process i know it depends the blog style. this is my tech site

  41. WIll i loose any of my SEO , pr juice or backlinks by miving blogger to wordpress platform?

    It is necessary to have a custom domain for moving to wordpress or can I use .blogspot doman too for transfer?

    Thanks for this article. Hope you wont mind my questions

  42. Looks like I'm the third person to ask this on this article.. but I don't see an answer!!

    I also have a custom domain blogger blog that will be moving to wordpress and I would like to know how to automatically make 301 custom redirects!



  43. I am in the process of transferring my blogger to wordpress. I'm a bit lost on the instructions. Do I access from Wordpress OR blogger (after I transfer)?

    Please elaborate which site I will be working from. And please understand that I am NOT blog savvy :). Thanks!

    My site:

  44. Hello, if you could please help me.
    I followed the instructions but my blogger template will no let me save the pasted information.

    I would appreciate your help.


  45. How Long do I have to leave the Published “Blogger” page on my new word press blog? Or is there a way to hide that page?

  46. This comment has been removed by the author.

  47. Thanks for sharing this very useful techniques.....but if suppose i migrate my blogspot to wordpress platform then it is necessary to having Hosting any hosting providing service......or i can use free hosing like blogspot ....