Skip to content

Instantly share code, notes, and snippets.

@chrisallenlane
Created September 27, 2012 20:47
Show Gist options
  • Save chrisallenlane/3796378 to your computer and use it in GitHub Desktop.
Save chrisallenlane/3796378 to your computer and use it in GitHub Desktop.
Pathing Wordpress to its Document Root
/** Make sandbox development a little easier */
define('WP_HOME', "http://{$_SERVER['SERVER_NAME']}/");
define('WP_SITEURL', "http://{$_SERVER['SERVER_NAME']}/");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment