Your WordPress address and site address are very important as they reference both the address of your site on the web and the location of your site's files. Follow the different methods below to change your WordPress URL, also known as the WordPress Address and or Site Address. The first and most method is to change your WordPress URL directly from within the admin dashboard. You might also need to clear your WordPress site cache after updating URLs, otherwise, you might receive error. If you're Kinsta client, you can clear your cache from MyKinsta dashboard under the. The wp-config php file is located at the root of your WordPress site and can be accessed via FTP, SSH, or WP-CLI. To hard-code WP HOME and WP SITEURL, simply input the following code towards the top of the file, changing the values to reflect your domain. define define. You can always remove the two lines if you prefer to edit these values from WordPress dashboard. 3. method you can use to change your WordPress URL is in the database using phpMyAdmin . And finally, the last recommend method for changing your WordPress URL is with WP-CLI.
Read more