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.
- Log in to Plesk.
-
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
optionstable (orsome_prefix_options) under the database name.2.3. Under the
option_namecolumn, find the linesiteurl.2.4. Click Edit next to it and set the new website name in the
option_valuefield.2.5. Scroll down and click GO to apply the changes.
2.6 Then find the line
homeand change the name for it the same way. -
Set the new name in domain's
wp-config.phpfile:3.1. Go to Plesk > Domains > example.com > Dashboard tab > File Manager.
3.2. Click on the file
wp-config.phpto 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_SITEURLorWP_HOME. If there are, remove them. -
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.
Comments
Please sign in to leave a comment.