3. You will also need to re-generate the permalinks to make sure they have the new URL in Settings> Permalinks.So if you had Post name, you need to switch it to "Default" for instance, save the changes and then revert everything back:

If Dashboard is not opening or not letting you in for some reason, you may perform the changes directly in MySQL database. The instructions below will guide you on how to change the WordPress website URL usingphpMyAdmin in cPanel.

1. Log into your cPanel and navigate to the phpMyAdmin menu:

2. Choose the database which is used for your WordPress blog and click on it.

If you are not sure what exact database you need, check it in the wp-config.php file which is located in the document root, in our case, it is /public_html/wp/:

3. Click on the wp-options table and edit the siteurl and home fields: