niammuddin icon

wp-config.php SSL Wordpress

niammuddin | PRO | 08/23/19 06:21:07 AM UTC | 0 ⭐ | 490 👁️ | Never ⏰ | []
PHP |

280 B

|

None

|

0 👍

/

0 👎

/** SSL */  
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';

Comments