Quantcast
Channel: Clan VPS Host » redirect
Viewing all articles
Browse latest Browse all 42

Trying to redirect subdomains to non http but it's not working

$
0
0

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.


Viewing all articles
Browse latest Browse all 42

Trending Articles