Sign Up / Log In
Need help?
1 213 559 2459
Online Support Web Hosting

Change URL on website via phpMyAdmin or wp-config.php

A Domain Name is the forefront of your online brand. If it does not serve its purpose, you can always change it. For WordPress sites, there are several ways to change URL. This article will show two ways - via phpMyAdmin and wp-config.php file.

Important Note: Before making any changes, please make sure to back up your website first.

Change URL via phpMyAdmin

Here’s a step-by-step guide to change URL via phpMyAdmin:

  1. Click Sign Up / Log In at the top of this page.
  2. Select Hosting Manager from the drop-down menu.
  3. Enter your username and password, and click Log In.
  4. Under Databases, select phpMyAdmin.
  5. On phpMyAdmin interface, select necessary wordpress database.
  6. Under Table column, select wp_options from the list.
  7. Under option_name column, look for siteurl, and click Edit on its far left corner.
  8. Enter your new URL in option_value.
  9. Click Go.
  10. Go back to option_name, look for home, and click Edit on its far left corner.
  11. Enter your new URL in option_value.
  12. Click Go.

Change URL via wp-config.php

Here’s a step-by-step guide to change URL via wp-config.php file:

  1. Click Sign Up / Log In at the top of this page.
  2. Select Hosting Manager from the drop-down menu.
  3. Enter your username and password and click Log In.
  4. On the Home page, click Files icon, or the [ v ] arrow button on the right side, and then click Files Manager.
  5. Select Web Root (public_html/www), then click Go.
  6. Right-click on wp-config.php file, then select Edit.
  7. A code editor will display, just click Edit.
  8. Insert the following lines before // **MySQL settings – You can get this info from your web host **//:
            define('WP_HOME','http://newURL.com');
            define('WP_SITEURL','http://newURL.com');
            

    Important Note: Replace http://newURL.com to your actual URL.

  9. Click Save Changes.

Important Note: Changing the URL will not transfer site files automatically. You will have to transfer website files manually.

Congratulations! You have learned how to change your website's URL.

Was this helpful? Yes No 89% of people found this helpful.
we're
online
Need Help? Chat Now