I'm using this on a wordpress multisite to redirect my main domain to https and all subdomains to non https, however, it's only working for the main domain: # for main domainRewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC]RewriteCond %{HTTPS} off [OR]RewriteCond %{HTTP_HOST} ^www\. [NC]RewriteRule ^ https://domain.com%{REQUEST_URI} [R=301,L,NE] # for sub domainRewriteCond %{HTTP_HOST} ^(www\.)?subdomain\.domain\.com$ [NC]RewriteCond %{HTTPS} on [OR]RewriteCond %{HTTP_HOST} … Continue reading Trying to redirect subdomains to non http but it's not working
The post Trying to redirect subdomains to non http but it's not working appeared first on Clan VPS Host.