Skip to content

Instantly share code, notes, and snippets.

@trey
Created March 8, 2010 21:16
Show Gist options
  • Save trey/325761 to your computer and use it in GitHub Desktop.
Save trey/325761 to your computer and use it in GitHub Desktop.
Flexible WordPress Configuration
define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content' );
define('WP_CONTENT_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/wp-content');
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME'] . '');
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/wordpress');
/* More info: http://solutions.treypiepmeier.com/2008/05/28/installing-wordpress-the-right-way/ */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment