How to Migrate From WordPress.com to Self-hosted WordPress

I know that this topic has been mentioned a thousand and one time in the blogosphere, but still, there are many people asking me how to do it the easy way. Since this site is about making tech easier, I have decided to come up with a comprehensive and easy to follow guide for those who have decided to jump the ship.

For those who have no idea about the differences between WordPress.com and self hosted WordPress, read this article first before you proceed.

First thing first

Before you start the migration from WordPress.com to self hosted WordPress, you will need to have:

  • a domain name
  • a web hosting account and
  • the WordPress software already installed.

If you do not have any of the three, go to Hostgator and register for a domain name and a webhost account.

Once you have registered for your domain name and web hosting plan, you will receive an email with your login info.

migratewp-hostgator-email

Click on the cPanel link and login with your username and password.

Once you are in the cPanel dashboard, scroll down till you see the Fantastico icon. Click on it.

On the left pane, click on the WordPress link

migratewp-fantastico-wordpress

You will be asked to enter login name, password and your email address. In a few clicks, the WordPress software will be installed in your server.

You can test it by going to the URL http://your-domain.com/wp-login.php

Migrating from WordPress.com

The next thing that you are going to do is to export all your content from your WordPress.com site.

Login to your WordPress.com account and go to Tools -> Export

migratewp-wp-export

Click the Download Export File button to export the content. It should generate a XML file.

migratewp-export-xml

Importing to the content to your self hosted WordPress site

Login to your self hosted WordPress site and go to Tools -> Import.

Click on the WordPress link.

migratewp-import-xml

Upload the XML file. It will then prompt you to map the posts author to the new account’s author. Remember to check the box “Download and import file attachments”

migratewp-import-assign-author

Note: If your XML file is more than 2MB in size, you might face problem uploading it to the server (most servers only allow 2MB of file upload). You will have to submit a ticket to your web host and get them to increase the file upload limit.

Redirecting readers from WordPress.com to self hosted WordPress site

You have migrated your content over, don’t you want to migrate your readers over too?

Currently there is no free way to do this. The only way to redirect your readers is to use the domain mapping method which will cost you $9.97 per year.

You can head on to the WordPress support site for detailed instructions to map the WordPress.com site to your domain. In general, you need to:

  • change the nameserver of your domain to point to the WordPress.com server
  • Add your domain name to your WordPress.com site in the Settings -> Domains section (This will require you to pay an annual fee of $9.97).
  • Change the nameserver of your domain back to its original setting.

With that, any readers arriving at your WordPress.com site will be redirected to your self hosted WordPress site. You get to keep your readers as well as your search engine ranking.

That’s it. If you have any questions, feel free to shoot them in the comments.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Damien Oh Avatar

Read next

Suzanne Simard sealed paper birch and Douglas fir seedlings inside plastic bags, fed them carbon-14 and carbon-13 dioxide, and nine days later found carbon had crossed between species through fungal threads in the British Columbia soil beneath her boots
A species of jellyfish called Turritopsis dohrnii can revert its adult cells back to a juvenile polyp stage when injured or starving, effectively restarting its life cycle, and biologists have so far failed to identify any natural limit to how many times it can do this.
A Japanese man named Jiroemon Kimura, who lived to 116, was born in 1897 when Queen Victoria still ruled and died in 2013, meaning a single human life personally overlapped with the invention of the airplane, the atomic bomb, the internet, and Instagram
The Hollywood sign originally read HOLLYWOODLAND when it was built in 1923 as a real estate advertisement for a housing development, and it was only meant to stand for 18 months, but nobody ever got around to taking it down and the city eventually adopted it as a landmark
Almost all of the world’s internet traffic does not travel by satellite but through fibre-optic cables lying on the ocean floor, a hidden web of wires crossing the deepest parts of the sea to connect the continents.
People who flip their phone face down on every table aren’t being secretive. They figured out that staying interruptible meant handing their time to whoever rang first
Twitch vs. Facebook Gaming vs. YouTube Gaming: What’s the Best Live Game Streaming Platform?
Chrome Extensions Ownership Transfer is a Direct Threat to You: How to Stay Safe