Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Enable SSL support at CloudFlare for WordPress
<?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