Support / KnowledgeBase

 
Search the KnowledgeBase Search

How can I change the domain name for my WordPress site?

  • Applies to: Grid

  • Difficulty: Medium

  • Time needed: 10 minutes

  • Tools needed: AccountCenter access, WordPress administrator access, phpMyAdmin

 
  • Applies to: Grid
    • Difficulty: Medium
    • Time Needed: 10
    • Tools Required: AccountCenter access, WordPress administrator access, phpMyAdmin
  • Applies to: DV
    • Difficulty: Medium
    • Time Needed: 10
    • Tools Required: Plesk administrator access, WordPress administrator access, phpMyAdmin

CloudTech_ProductPage_217x57

CloudTech Can Help!

If you’re having trouble with the steps in this article, additional assistance is available via CloudTech, our premium services division. Our expert engineers can assist you with third-party CMS configuration to keep things running smoothly. For more information on what CloudTech can do for you, please click here.

Overview

This article will show you how to change the domain name for a WordPress site on your GridDV server. In this example, we will make these changes to reflect a move from blog.gs-example.comblog.dv-example.com to just gs-example.comdv-example.com. However, this can be accomplished between any domain or subdomain hosted on your GridDV 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:

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. Please take a moment to review the Statement of Support.

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. Please take a moment to review the Statement of Support.

Instructions

Be sure that your target domain (in this case, gs-example.comdv-example.com) does not exist as a folder in the domainshave content in its directory. If it does, you can use the File ManagerFile 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://gs-example.comhttp://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 for your Grid. For detailed instructions, please see: Accessing phpMyAdmin for your Grid.
  2. From the left menu, click on your MySQL database.

    Figure 4.

  3. Also from the left menu, select wp-options.

    Figure 5.

  4. Click on the pencil icon to edit the siteurl and home rows in the wp_options table.

    Figure 7.

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

    Figure 8.

  1. Access phpMyAdmin via your Control Panel. For instructions, please see: Accessing phpMyAdmin for your DV server.
  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! 

  8.  

TIP:

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

Resources

For more information on managing your WordPress blogs, please start with the links listed below:

 

Continue