I have two domains and one valid subdomain. How can i achieve this?
ex-ample.com » example.com
www.example.com » example.com
en.ex-ample.com » en.example.com
en.example.com » en.example.com
I'm using the following .htaccess rule currently:
RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
Tried many but the best i can get is a redirect loop. Can you help me?
RewriteLogandRewriteLogLevel) and see exactly what's happening (and maybe post the log entries here). – larsks Jun 23 '11 at 13:19