stop forcing https locally
This commit is contained in:
@@ -23,16 +23,6 @@ if (file_exists($env_config)) {
|
|||||||
require_once $env_config;
|
require_once $env_config;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Stops redirect loop on login page
|
|
||||||
*/
|
|
||||||
define('FORCE_SSL_ADMIN', true);
|
|
||||||
// in some setups HTTP_X_FORWARDED_PROTO might contain
|
|
||||||
// a comma-separated list e.g. http,https
|
|
||||||
// so check for https existence
|
|
||||||
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
|
|
||||||
$_SERVER['HTTPS']='on';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URLs
|
* URLs
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -5,3 +5,13 @@ define('WP_DEBUG_DISPLAY', false);
|
|||||||
define('SCRIPT_DEBUG', false);
|
define('SCRIPT_DEBUG', false);
|
||||||
/** Disable all file modifications including updates and update notifications */
|
/** Disable all file modifications including updates and update notifications */
|
||||||
define('DISALLOW_FILE_MODS', true);
|
define('DISALLOW_FILE_MODS', true);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stops redirect loop on login page
|
||||||
|
*/
|
||||||
|
define('FORCE_SSL_ADMIN', true);
|
||||||
|
// in some setups HTTP_X_FORWARDED_PROTO might contain
|
||||||
|
// a comma-separated list e.g. http,https
|
||||||
|
// so check for https existence
|
||||||
|
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
|
||||||
|
$_SERVER['HTTPS']='on';
|
||||||
@@ -5,3 +5,13 @@ define('WP_DEBUG_DISPLAY', false);
|
|||||||
define('SCRIPT_DEBUG', false);
|
define('SCRIPT_DEBUG', false);
|
||||||
/** Disable all file modifications including updates and update notifications */
|
/** Disable all file modifications including updates and update notifications */
|
||||||
define('DISALLOW_FILE_MODS', true);
|
define('DISALLOW_FILE_MODS', true);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stops redirect loop on login page
|
||||||
|
*/
|
||||||
|
define('FORCE_SSL_ADMIN', true);
|
||||||
|
// in some setups HTTP_X_FORWARDED_PROTO might contain
|
||||||
|
// a comma-separated list e.g. http,https
|
||||||
|
// so check for https existence
|
||||||
|
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
|
||||||
|
$_SERVER['HTTPS']='on';
|
||||||
|
|||||||
Reference in New Issue
Block a user