Articles

How to Change the WordPress URL

By default, ServerPilot configures WordPress to be accessed using any URL instead of redirecting the browser to a specific URL.

To change these values, you can edit your app's wp-config.php file and change the lines

define('WP_SITEURL', SP_REQUEST_URL);
define('WP_HOME', SP_REQUEST_URL);

to the URL you need them to be, for example:

define('WP_SITEURL', 'http://example.com');
define('WP_HOME', 'http://example.com');