Created
July 2, 2012 21:19
-
-
Save eddiemoya/3035761 to your computer and use it in GitHub Desktop.
WordPress - wp-config.php settings for dynamic host detection.
This file contains hidden or 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
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content' ); | |
define( 'WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins' ); | |
define( 'PLUGINDIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins' ); | |
define( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']); | |
define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST']); | |
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp-content'); | |
define( 'WP_PLUGIN_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp-content/plugins'); | |
define( 'UPLOADS', 'wp-content/uploads' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Used tim's changes to make this use a standard wordpress structure instead of the uxwpress and KMF paths.