HOW CAN I CHANGE THE DOMAIN NAME FOR MY WORDPRESS SITE?

HOW CAN I CHANGE THE DOMAIN NAME FOR MY WORDPRESS SITE?


If you're having trouble with the steps in this article, additional assistance is available via support@freshspot.co.zw.

OVERVIEW

This article will show you how to change the domain name for a WordPress site on your DV server. In this example, we will make these changes to reflect a move from blog.dv-example.com to just dv-example.com. However, this can be accomplished between any domain or subdomain hosted on your Linux server, on the same webspace or subscription.

CAUTION:

The steps in this article will NOT move your site files for you! You will need to do this manually. These instructions are designed to help you update WordPress to reflect the correct domain name after you have moved your files.

We advise keeping a copy of your WordPress installation in both target folders while you are making this switch, so you don't accidentally lock yourself out of WordPress while attempting to make any changes.

REQUIREMENTS

Before you start, you will need:

  • WordPress installed and your WordPress administrator user login credentials handy.
  • READ ME FIRST

The publishing of this information does not imply support of this article. This article is provided solely as a courtesy to our customers. 

INSTRUCTIONS

Be sure that your target domain (in this case, dv-example.com) does not have content in its directory. If it does, you can use the File Manager tool or FTP to rename it.

Via WordPress Dashboard

  1. After moving your site files (if necessary), log into your your WordPress Dashboard as an administrator.
  2. Next, click on Settings from the menu, and then General.

     
    Click on General to get started.

  3. The two fields we'll change are WordPress Address (URL) and Site Address (URL).

  4. Enter the URL you'd like to use. For this example, we'll change the two fields to http://dv-example.com.

  5. Scroll down the page and click on the Save Changes button.

  6. Be sure that you rename the folder to the new URL in FTP or the File Manager. 

That's it!

TIP:

Remember that your WordPress Dashboard has now changed and will be using the URL you entered in Step 4.

Via phpMyAdmin

    1. Access phpMyAdmin via your Control Panel. 
    2. Click on the MySQL database for your WordPress blog. This opens phpMyAdmin in a new browser window or tab, depending on your browser preferences.
    3. Click on wp-options.

    4. Click on Edit on the line for siteurl. Repeat this process for the home row, also found in the wp_options table.

       
      Figure 5.

    5. Enter your new blog domain name and click the Go button. For this example, we are changing the domain from http://blog.dv-example.com to http://dv-example.com.

      Figure 8.

    6. Repeat this process for the home row, also found in the wp_options table. 
    7. Be sure that you rename the folder to the new URL in FTP or the File Manager. That's it! 

TIP:

Remember that your WordPress Dashboard has now changed and will be using the URL you entered in Step 6.

  • 1 Kunder som kunne bruge dette svar
Hjalp dette svar dig?

Relaterede artikler