So I have a site:
https://www.americanbeautytools.comI just finished the mobile version which is in public_html/mobile and I created a subdomain: m.americanbeautytools.com
When I go to m.americanbeautytools.com it seems to work... firefox is being a bitch at the moment but Chrome works. But when I go to
https://m.americanbeautytools.com it redirects to the full (www) version!
I just upgraded the SSL certificate to a wildcard certificate so the https should work for both but it seems like the root htaccess is overriding the subdomain and the htaccess in that folder.
Relevant root htaccess part:
RewriteCond %{HTTP_HOST} ^resistancesoldering.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.resistancesoldering.com$
RewriteRule ^(.*)$ "http\:\/\/www\.resistancesoldering\.com/site" [R=301]
RewriteCond %{HTTP_HOST} ^solderingsolutions.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.solderingsolutions.com$
RewriteRule ^(.*)$ "https\:\/\/www\.americanbeautytools\.com" [R=301]
>>>>RewriteCond %{HTTP_HOST} ^americanbeautytools.com$ [NC]
>>>>RewriteRule ^(.*)$ https://www.americanbeautytools.com/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NC,L]
The htaccess in the mobile folder doesn't do any redirects and there are no redirects in cpanel for the main domain or the subdomain.
Help? I thought it was the lines with '>>>>' but even when I comment that out it does the same thing.