Skip to content

Instantly share code, notes, and snippets.

Created Oct 4, 2012
Embed
What would you like to do?
if ($_SERVER['SERVER_NAME'] != 'production.com') {
define('WP_HOME', 'http://localhost');
define('WP_SITEURL', 'http://localhost');
}else{
define('WP_HOME', 'http://production.com');
define('WP_SITEURL', 'http://production.com');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment