Last active
October 26, 2016 19:41
-
-
Save chancesmith/5b1b42ea32bac3dcc5ac9580fc21dd65 to your computer and use it in GitHub Desktop.
local wordpress developement URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// source: http://mardell.me/blog/how-to-use-a-single-wordpress-config-for-local-and-remote-environments/ | |
///// | |
if ($_SERVER['SERVER_NAME'] === "blog.dev") { | |
// test site | |
define( 'WP_SITEURL', 'http://blog.dev' ); | |
define( 'WP_HOME', 'http://blog.dev' ); | |
} else { | |
// live site | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment