How to Add the Site URL to the wp-config.php File

I find that adding the URL to the wp-config.php file helps when transferring a site from local to live production.

define('WP_HOME', 'http://www.example.com'); // no trailing slash
define('WP_SITEURL', 'http://www.example.com'); // no trailing slash

One thought on “How to Add the Site URL to the wp-config.php File

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s