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' );