htaccessredirect问题

我在/ var / www / html文件夹中的.htaccess文件中有以下内容。

Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} ^(www\.)?domain\.net [nc,or] RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com\.au [nc,or] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent, NC, L] 

我想要所有的domain.net和domain.com.au请求redirect到domain.com。

这似乎没有redirect。 我究竟做错了什么? 谢谢!

在过去,我遇到了列表中的空格问题。 而且,最后的OR不需要,可能会导致问题。 尝试这个:

 Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} ^(www\.)?domain\.net [NC,OR] RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com\.au [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,NC,L]