Hi

Can somebody help me write htaccess to do the following:

301 redirect:
domain1.com.au
domain2.com.au
domain-3.net.au
(anycombo).com.au
domain1.net.au
domain2.net.au
domain-3.net.au
(anycombo).net.au

to:
someotherdomain.com.au?domain=(as above .com.au/.net.au)


So
PHP Code:
http://yadayada.com.au would 301 redirect to
http://www.someotherdomain.com.au?domain=yadayada.com.au

http://www.yadayada.com.au would 301 redirect to
http://www.someotherdomain.com.au?domain=yadayada.com.au

http://DOMAIN-3.NET.AU would 301 redirect to
http://www.someotherdomain.com.au?domain=domain-3.net.au 
Kind of like what cpanel does, but with wildcards:

RewriteCond %{HTTP_HOST} ^domain\.com\.au$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domain\.com\.au$
RewriteRule ^/?$ "http\:\/\/www\.otherdomain\.com\.au\?domain\=domain\.com\.au" [R=301,L]

Thank you!