Articles in this section

How to change the name of a WordPress-based website in Plesk?

Plesk for Windows Plesk for Linux

Applicable to:

  • Plesk for Linux
  • Plesk for Windows

Question

How to change the name of a WordPress-based website in Plesk?

Answer

Note: In the example below, we are renaming a domain from example.com to example.net.

  1. Log in to Plesk.
  2. Change the name in the WordPress database:

    2.1. Go to Domains > example.com > Dashboard tab > Databases > select the WordPress database > click phpMyAdmin.

    2.2. In phpMyAdmin, click on the options table (or some_prefix_options) under the database name.

    2.3. Under the option_name column, find the line siteurl.

    2.4. Click Edit next to it and set the new website name in the option_value field.

    2.5. Scroll down and click GO to apply the changes.

    2.6 Then find the line home and change the name for it the same way.

  3. Set the new name in domain's wp-config.php file:

    3.1. Go to Plesk > Domains > example.com > Dashboard tab > File Manager.

    3.2. Click on the file wp-config.php to open it in an editor.

    3.3. Add the following lines:

    CONFIG_TEXT: define( 'WP_SITEURL', 'https://example.net/' );
    define( 'WP_HOME', 'https://example.net/' );

    Note: Make sure there are no other lines with WP_SITEURL or WP_HOME. If there are, remove them.

  4. Change the domain name in Plesk:

    4.1. Go to Domains > example.com > Hosting & DNS tab > Hosting.

    4.2. In the Domain name field, change the domain name.

    4.3. Apply the changes.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.