Skip to content

Instantly share code, notes, and snippets.

@eddiemoya
Created July 2, 2012 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save eddiemoya/3035761 to your computer and use it in GitHub Desktop.
Save eddiemoya/3035761 to your computer and use it in GitHub Desktop.
WordPress - wp-config.php settings for dynamic host detection.
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' );
@eddiemoya
Copy link
Author

Used tim's changes to make this use a standard wordpress structure instead of the uxwpress and KMF paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment