.htaccess Redirect depending on domain
Do you want to redirect depending on what domain users use to access your website? The following code you add to your .htaccess file redirects when users enter "domain.co.nz" to "domain.com". If your .htaccess file doesn't exist simply create a new one.
RewriteEngine OnRewriteCond %{HTTP_HOST} ^(www\.)?domain\.co.nz [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
Thanks to the following site for the code