Easy Way: Change WordPress address and Site address Setting

Your WordPress address and Site address will be the same but in few conditions both are different. For example: if you’ve core applications files you have installed in a subdirectory  rather than a root directory then your settings are different. If you reach your site address then you talk about your WordPress address, and if you reach your WordPress core files address then you talk about your site address.

If you are migrating your WordPress site to another host or changing the domain name or location of your WordPress site installation’s then keep in your mind how WordPress keeps track of itself via WordPress URL and Site URL setting.

In this article today we will discuss many methods for changing your WordPress address and site address setting.

  • Changing your WordPress address and site address setting in the admin dashboard.
  • Changing your WordPress URL setting directly in the database.
  • Change Site address in WP-config.php files.
  • WordPress Site Address Change with Relocate Method.

Changing your WordPress Address and Site Address Setting in the Admin Dashboard

After using this method you could directly change the WordPress site address in the admin dashboard. Remember that after you click save change, your WordPress admin dashboard now opens with a new URl. So you should check your site URL.

When you are going to the general setting page in the admin dashboard then you see WordPress address (URL) and site address (URL). WordPress address means: the address to reach your file and site address indicates the location of your site files.

change WordPress address and site address by admin dashboard
Admin Dashboard

Step by step guide to change your WordPress URL setting in your admin dashboard.

  1. Firstly you will open the admin dashboard.
  2. Now you go to the “General” button in the “setting” option.
  3. After clicking the “General” button you front the general setting page.
  4. In this page you see two boxes: first are WordPress address (URL) and second are Site address (URL).
  5. Fill this box WordPress address and Site address of your site.
  6. After filling the address click “save change”.

Changing your WordPress URL Setting Directly in the Database

Using this method you can directly change your WordPress address setting in the database. The database name is “phpMyAdmin”, and this tool will get in your hosting cPanel.

Change your WordPress url setting directly in database
Database

Step by step guide to change your WordPress URL directly in your database.

  1. First of all you go to your phpMyAdmin tool, by your hosting cPanel.
  2. Click your WordPress database from the left.
  3. After clicking on your database you will see WP_option in the table.
  4. Click WP_option.
  5. Now your front option_name column and check this column then you will see siteurl and home option.
  6. In the first column click “edit button”.
  7. Change your siteurl and home.
  8. After changing, click the save button.

Change WordPress Address and Site Address in WP-Config.php Files

you can easily change your Siteurl and Home from using this file WP-config.php. This WP-config.php file will be in your hosting cPanel.

Change WordPress address and site address by wp-config.php file, wp-config.php file
WP-Config.PHP file

Step by step guide to change your siteurl and home in wp-config.php file.

  1. Open your hosting cPanel.
  2. Search file manager in search box.
  3. Open file manager.
  4. Click the WP-config.php file.
  5. Click the save change button.
  6. And last edit your siteurl and home.

Examples:  define( ‘WP_HOME’, ‘http://yoursiteurl.com’ );

                   define( ‘WP_SITEURL’, ‘http://yoursiteurl.com’ );

WordPress Address and Site Address Change with Relocate Method

This method works when sites move from one server to another server because WordPress supports an automatic relocation method.

Step by step guide to change your WordPress site address with the RELOCATE method.

  1. Edit WP-confing.php file.
  2. At the top of the file add a line “define(‘RELOCATE’,true);”.
  3. After adding this file visit your page in your web browser. For example: https://yoursiteurl.com/wp/wp-login.php.
  4. Login your WordPress dashboard.
  5. Go setting>general.
  6. Check your WordPress site address. 

Conclusion

In this article you read four methods, first: changing the WordPress address and Site address from admin dashboard, second: you WordPress site address directly could change from database, third: edit WP-config.php files, fourth: relocation methods. Now you go to your website and choose any method and solve this problem, But before leaving, tell this in the comment box, which method did you like?.