Skip to content

Instantly share code, notes, and snippets.

@abaicus
Created December 2, 2021 10:22
Show Gist options
  • Save abaicus/54371fb7c4c3586cda5e397420c50cad to your computer and use it in GitHub Desktop.
Save abaicus/54371fb7c4c3586cda5e397420c50cad to your computer and use it in GitHub Desktop.
Multisite redirects to the wp-signup.php page
<?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