Created
December 21, 2015 09:38
-
-
Save kasparsd/9b5784c43f268f469a1c to your computer and use it in GitHub Desktop.
FORCE_SSL_ADMIN for certain domains on WordPress Multisite
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 | |
$ssl_domains = array( | |
'example.com', | |
'anotherexample.com', | |
); | |
if ( in_array( $_SERVER['SERVER_NAME'], $ssl_domains ) ) { | |
define( 'FORCE_SSL_ADMIN', true ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment