Created
June 4, 2015 12:38
-
-
Save gordjw/3db7bf513fbd51843ce6 to your computer and use it in GitHub Desktop.
wp-config file to serve core and wp-content from different directories
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
<?php | |
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') | |
$_SERVER['HTTPS'] = 'on'; | |
define('WP_CONTENT_DIR', '/data/www/web/wp-content'); | |
// is_ssl doesn't always work, e.g. behind load balancers | |
if((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || is_ssl()) | |
define('WP_CONTENT_URL', 'https://' . $_SERVER['HTTP_HOST'] . '/wp-content'); | |
else | |
define('WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp-content'); | |
define('DB_NAME', 'wp'); | |
define('DB_USER', 'wp'); | |
define('DB_PASSWORD', 'password'); | |
define('DB_HOST', '127.0.0.1'); | |
define('DB_CHARSET', 'utf8'); | |
define('DB_COLLATE', 'utf8_bin'); | |
/**#@+*/ | |
define('AUTH_KEY', ''); | |
define('SECURE_AUTH_KEY', ''); | |
define('LOGGED_IN_KEY', ''); | |
define('NONCE_KEY', ''); | |
define('AUTH_SALT', ''); | |
define('SECURE_AUTH_SALT', ''); | |
define('LOGGED_IN_SALT', ''); | |
define('NONCE_SALT', ''); | |
/**#@-*/ | |
$table_prefix = 'wp_'; | |
define('WP_DEBUG', false); | |
define('WP_ALLOW_MULTISITE', true); | |
define('MULTISITE', true); | |
define('SUBDOMAIN_INSTALL', true); | |
define('DOMAIN_CURRENT_SITE', 'wp_dev'); | |
define('PATH_CURRENT_SITE', '/'); | |
define('SITE_ID_CURRENT_SITE', 1); | |
define('BLOG_ID_CURRENT_SITE', 1); | |
if ( !defined('ABSPATH') ) | |
define('ABSPATH', dirname(__FILE__) . '/'); | |
require_once(ABSPATH . 'wp-settings.php'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment