Redirecting base url only using htaccess
snippet in htaccess

Redirecting base url only using htaccess

user2680

RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_HOST} !^m\.
RewriteRule ^$ http://anotherdomain.com [R,L]