Created
December 2, 2021 10:22
-
-
Save abaicus/54371fb7c4c3586cda5e397420c50cad to your computer and use it in GitHub Desktop.
Multisite redirects to the wp-signup.php page
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 | |
$allowed_mappings = [ | |
'domain.test', | |
]; | |
define( 'NOBLOGREDIRECT', isset( $_SERVER['HTTP_HOST'] ) && in_array( $_SERVER['HTTP_HOST'], $allowed_mappings ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment