I’ve got my rewrite rule below and it works:
RewriteCond %{HTTP_HOST} ^website\.com$ [NC]
RewriteRule ^(.*)$ http://www.website.com/$1 [R=301,L]
However, it will redirect m.website.com to www.website.com.
Is there a way I can get it to ignore the m. subdomain? I don’t want to have the mobile site be www.website.com/mobile
You can exclude the subdomain using another RewriteCond.
Rewrite all subdomains except ‘m’: