Last active
February 8, 2024 10:51
-
-
Save wgroenewold/68fcaaabfbf939282b1a5cddd6f636e8 to your computer and use it in GitHub Desktop.
Force all traffic for Wordpress over SSL
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
define('FORCE_SSL_ADMIN', true); | |
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'){ | |
$_SERVER['HTTPS']='on'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dank je Wouter ;)