5

htaccess redirect issue

view full story
linux-howto

http://serverfault.com – I have the following on my .htaccess file within /var/www/html folder. 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] I want all domain.net and domain.com.au requests to redirect to domain.com. This does not seem to redirect. What am I doing wrong? Thanks! (HowTos)