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


  • 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
  • Applies to: DV 4.0
    • Difficulty: Medium
    • Time Needed: 10
    • Tools Required: Plesk administrator access, WordPress administrator access, phpMyAdmin
  • Applies to: WordPress Hosting
    • Difficulty: Medium
    • Time Needed: 10
    • Tools Required: Account Center 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 name change from mt-domain.com to mt-website.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 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 on your domain.
  • Your WordPress credentials (username/password)
  • Both the current and new domain name have their DNS pointed to your Grid server IP. To check, you can look up your server IP address.  Then run a DNS check using the dig command, or a third-party website such as: https://dnschecker.org/
  • Both the current and new domain are added as a primary or alternate domains to your Grid server. If you require instructions on adding a domain to your server, you may feel free to review our article here.

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

Method 1 - WordPress Dashboard

  1. Open a web browser, and log into your WordPress Dashboard.
    (typically the WordPress Dashboard login is accessible at the URL example.com/wp-admin).

    dashboard-login.png

  2. Once you have logged in, click on Settings. Then click General.

    Dash-1.png

  3. Once in the General Settings, locate the WordPress Address (URL) and Site Address (URL).

    Dash-2.png

  4. Update both sections to the new domain name. Then scroll to the bottom of the General Settings menu and click Save Changes.
    (If you wish to add https or www you may do so in this step.)

    Dash-3.png

    dash2.5.png

  5. Now you will want to update your website's folder/directory. This can be done through File Manager, FTP, or SSH. In this example, we will use the File Manager built-in with your Grid.
  6. Navigate to the File Manager. Then click on the /domains folder.

    Grid-1.png

  7. Once in the /domains folder, locate the folder that has your website's name. Click on the "gear" icon. A pop-up menu will appear to your right. Then click Edit Name.

    For legacy versions (such as the (gs) Grid Service or Grid Lite), the icon may appear as a "pencil/paper" icon instead of a "gear".


    Grid-2_png.png

    Duplicate/Pre-existing Folder Names:

    In this example, we are attempting to change the name of the folder /mt-domain.com to /mt-website.com. However, suppose there is already a folder named /mt-website.com in here. We would need to rename or delete the pre-existing /mt-website.com folder first. Otherwise when you try to rename /mt-domain.com to /mt-website.com it will read as a duplicate folder and not work properly.

    Grid-4.png


  8. Input the desired domain name.
    (do NOT include http, https, or www in this step).

    Grid-3.png

  9. That's it! Your domain name should be changed. You can open a new browser window and try visiting your site with the new URL.

Method 2 - phpMyAdmin

  1. Log into phpMyAdmin.

    If you need to review your database credentials, those can be accessed within the wp-config.php file. The typical path for this file would be /domains/example.com/html/wp-config.php.

  2. Once in phpMyAdmin, locate and click on your database located in the left menu bar.
  3. Click on wp_options.

    php-1.5.png

  4. Ensure you are in the Browse section.
  5. Locate the siteurl and home sections. To edit these you can click on the Pencil/Edit icon next to each table.

    php-2.png

    If you've installed your WordPress using Managed Apps, you might only see the siteurl option. This is normal, and you can edit just the siteurl section.

  6. Insert your new domain name. Then select "Go". Do this for both the siteurl and home table, if applicable.
    (You can also add https or www in this step)

    php-3.png

  7. Now you will want to update your website's folder/directory. This can be done through the File Manager, FTP, or SSH. For more detailed instructions on the process, you can refer to Method 1 - Steps 5-8.

Alternative methods

For the Grid, we generally recommend using the WordPress Dashboard or phpMyAdmin methods outlined above. However, additional methods do exist, should you require, such as editing your wp-config.php or functions.php file. For information regarding those methods, feel free to review some reputable third-party resources below:

Requirements

Before you start, you will need:

  • WordPress installed on your domain.
  • Your WordPress credentials (username/password)
  • Both the current and new domain name have their DNS pointed to your server IP. To check you can look up your server IP address, and then run a DNS check using the dig command or a third-party website such as: https://dnschecker.org/
  • Both the current and new domain are added as a primary or alternate domains to your Grid server. If you require instructions on adding a domain to your server, you may feel free to view a Community article on the process here.

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

Method 1 - WordPress Dashboard

Make sure the new domain name A-records point to your DV server.

  1. Open a web browser, and log into your WordPress Dashboard.
    (typically the WordPress Dashboard login is accessible at the URL example.com/wp-admin).

    dashboard-login.png

  2. Once you have logged in, click on Settings. Then click on General.

    Dash-1.png

  3. Once in the General Settings, locate the WordPress Address (URL) and Site Address (URL).

    Dash-2.png

  4. Update these to the new domain name. Then scroll to the bottom of the General Settings menu and click Save Changes.
    (If you wish you can add https or www in this step).


    Dash-3.png

    dash2.5.png

Method 2 - phpMyAdmin

  1. Log into phpMyAdmin.

    If you need to review your database credentials, those can be accessed within the wp-config.php file.

  2. Once in phpMyAdmin, locate and click on your database located in the left menu bar.
  3. Click on wp_options.

    php-1.5.png

  4. Ensure you are in the Browse section.
  5. Locate the siteurl and home sections. To edit these you can click on the Pencil/Edit icon next to each table.

    php-2.png

  6. Insert your new domain name. Then select "Go". Do this for both the siteurl and home table.
    (You can also add https or www in this step)

    php-3.png

Alternative methods

We generally recommend using the WordPress Dashboard or phpMyAdmin methods outlined above. However, additional methods do exist, should you require, such as editing your wp-config.php or functions.php file. For information regarding those methods, feel free to review some reputable third-party resources below:

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

Method 1 - Account Center

The WordPress servers has an option in the Account Center that provides even non-technical customers the ability to edit their URL.

  1. Log into your (mt) Media Temple Account Center.
  2. Click on the blue Admin button next to your WordPress Server.

    ac-1.png

  3. Move your cursor over the site slot that you wish to edit. Then click on Manage Site.

    ac-2.png

  4. On the left side of your WordPress control panel, click on Domains.

    ac-3.png

  5. If you haven't added the desired domain name yet, click on Add Domain.
    ac-4.png

  6. Enter the desired domain name (it is not necessary to add www).
  7. If you need to register your domain name, you can also do so at this step. If you've already registered the domain either at (mt) Media Temple or with a third-party registrar, you can intead select "I already own this domain. Then select Use This Domain.

    ac-3.5.png


  8. You will be prompted to add the domain to your server/site. Select your WordPress server, then select the site slot you wish to add it to.

    ac-5.png

  9. Once the domain is added successfully, you will see it listed in your Domains page.

    ac-6.png

  10. Wait about 5 minutes. Then select the drop down menu to change your Primary Domain name to the new domain name.

    ac-7.png

  11. Wait another 5-10 minutes, and that's it! Your website should begin to show the new domain name. If you experience any delays in this change, you can attempt to clear your WordPress hosting cache.

    ac-8.png

Method 2 - phpMyAdmin

If you've changed the primary domain, cleared the WordPress Hosting Cache, and are still not seeing the desired username, you can check the database to ensure the URL is properly set there.

  1. Click on phpMyAdmin.

    php-1.png

  2. Look on the left had side of the screen. Click on your database. Then click wp_options.

    php-1.5.png

  3. Click on Browse.

    php-2.1.png

  4. Check the "home" and "siteurl" sections. If they are not set to the appropriate domain name, click on the Pencil icons.

    php-3.png

  5. Insert the desired domain name. Then select Go.

    php-4.png

  6. Wait 5-10 minutes, and that's it! Your domain should begin to show the new domain name. If you experience any delays in the change, you can attempt to clear your WordPress hosting cache.

    php-5.png

Resources

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