kaioe
11/17/2017 - 5:21 AM

Redirecting Multisites Wordpress

Allows .com and .com.au

/**
 * [fiji_redirect description]
 * Redirect the fiji site
 * @return [type] [description]
 */
function fiji_redirect() 
{
	$domain = $_REQUEST['new'];

	if (strpos($domain, 'myfiji.com.au') !== FALSE)
    {
        wp_redirect( 'https://www.myfiji.com/' );
        exit();
    }
}
add_action( 'init', 'fiji_redirect' );