Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST}!^www\.yourdomain\.net
RewriteCond %{HTTP_HOST}!^123\.45\.67\.89
RewriteRule ^(.*)$ http://www.yourdomain.net/$1 [R=permanent,L]
It works, but it makes my subdomains inaccessable. Is there any way around this?
RewriteEngine On
RewriteRule ^(.*)$ [yourdomain.com...] [L]
Works for me using subdomains, and any page on the domain.
Thanks