How to Change Your WordPress Domain From Blog to Website

You have a blog. Maybe you started it a while back as a portfolio, a place to share your work with potential employers, or just because you enjoy writing. Whatever the case may be, you have a blog now, and it is hosted on a platform called WordPress.com.

If you have been dreaming of expanding your blog’s reach and starting a business website, then congratulations! You can do so by changing your WordPress blog’s domain name from blog.yourdomain.com to yourdomain.com. In this article, we will tell you how to change the domain of your WordPress blog so you can better understand the steps involved in the process, as well as providing some helpful tips along the way.

Find Out The Current Domain

Before you make any changes to your blog, you will need to find out its current domain name. You can do this by clicking on the word "Blog" in the top left-hand corner of your WordPress dashboard and then selecting "Settings" from the left-hand menu. Alternatively, you can go to yoursite.com/wp-admin and log in with your credentials.

From here, you will be presented with a screen displaying all your blog’s details. On this page, you will see two subsections "Name" and "Automation". The first one is the name of your blog as you configured it in WordPress, and the second one is the domain you wish to assign to your blog.

In the example above, the blog’s current hosted domain is "wporblog.com". You can change this by editing the value field in the "Automation" section of your blog’s settings. Once you have changed the domain of your blog, you will need to click on the button indicating you have saved the settings.

Change The DNS

After you have changed the domain of your blog, you will need to change the DNS of your web server to point to the new address. The Domain Name System (DNS) handles the process of translating computer host names (such as "www.blog.yourdomain.com") to IP addresses (such as 74.125.226.32).

To change the DNS of your web server, you can log in to cPanel, a web hosting control panel, and make the required adjustments. If you use WordPress.com to manage your blog, you will need to contact them and provide them with the new DNS information.

Redirect All Old Posts

Now that your blog’s domain is set, you can update all the existing content on your blog with the new domain name. To do this, you can use the built-in tools in WordPress to track down and replace all the occurences of the old blog’s name with the new one. Alternatively, you can manually go through all your content and replace every instance of the old blog’s name with the new one.

When you have done this, you can use the tools in WordPress to test your blog’s redirections. For instance, you can enter blog.yourdomain.com and see if the blog now directs to yourdomain.com or to the old blog’s name. If it still points to the old blog, you will need to undo the redirections and then replace all the old blog’s content with that of the new one.

Remove The Blog From WordPress

After you have redirected all your old posts, you can remove the blog from WordPress. To do this, log in to your WordPress dashboard and visit Settings > Reading. Here you will see a list of all your blog’s posts arranged in reverse chronological order. On this page, you can select to delete the blog or keep it as a portfolio.

If you choose to delete the blog, you will no longer be able to access it through WordPress.com, as it will have been deleted from their servers. However, if you keep the blog, you can still access it through your own domain name.

Revert All Updates

Once you have removed the blog from WordPress, you will need to revert all the WordPress updates made to the blog. To do this, return to Settings > Reading and select the option Revert to show the latest backup of WordPress. Your last backup is typically named something like "db_backup.xxx" where xxx is a date in the format YYYYMMDD. In this case, the last backup is named "20180827".

Using this backup, you can restore the WordPress dashboard of your blog to its original condition. After this, you can remove all the updates made to the WordPress and be sure that your database is back to its original state. You will need to confirm this by verifying the backup file against the current status of your blog’s database.

You can now start using the new domain for your blog! Make sure to save the settings on your dashboard and change the DNS on your web server so that all your old and new posts are correctly redirected to the new blog. As a final step, you can remove the blog from WordPress altogether by selecting the option to delete it at Settings > Reading.