Advertisement
niammuddin

wp-config.php SSL Wordpress

Aug 23rd, 2019
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. /** SSL */  
  2. define('FORCE_SSL_ADMIN', true);  
  3. // in some setups HTTP_X_FORWARDED_PROTO might contain  
  4. // a comma-separated list e.g. http,https  
  5. // so check for https existence  
  6. if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)  
  7.     $_SERVER['HTTPS']='on';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement