Created
December 5, 2015 05:27
-
-
Save vladimirlukyanov/5f5cbd3efdc78168369d to your computer and use it in GitHub Desktop.
Enable SSL support at CloudFlare for WordPress
This file contains 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
<?php | |
//Add this to wp-config.php file "require_once(ABSPATH . 'wp-settings.php');" | |
if ($_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