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

  1. Pingback: 10 Simple Steps to Migrate WordPress from Local to Live Server | WP Zac

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s