Commit 78018399 authored by Fabio Montefuscolo's avatar Fabio Montefuscolo

detect https proto

parent 50d13d7e
......@@ -23,4 +23,7 @@
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
require_once(ABSPATH . 'wp-settings.php');
\ No newline at end of file
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';
require_once(ABSPATH . 'wp-settings.php');
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment