Skip to content

Instantly share code, notes, and snippets.

@kasparsd
Created December 21, 2015 09:38
Show Gist options
  • Save kasparsd/9b5784c43f268f469a1c to your computer and use it in GitHub Desktop.
Save kasparsd/9b5784c43f268f469a1c to your computer and use it in GitHub Desktop.
FORCE_SSL_ADMIN for certain domains on WordPress Multisite
<?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