Redirect Parked Domain to Main Domain

In .htaccess to redirect the .com to the .co.nz with and without the www

# redirect the parked .com to .co.nz
RewriteCond %{HTTP_HOST} ^parkeddomain.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.parkeddomain.com$ [NC]
RewriteRule ^(.*) http://maindomain.co.nz/$1 [R=301,L]