Does setenvif work in LS 5.0 ?

wanah

Well-Known Member
#1
Hello,

Is the following code supposed to work with LS 5.0.7 ?

Code:
SetEnvIf Host ^example\.com$ USE_HTTPS
SetEnvIf Host ^www\.example\.com$ USE_HTTPS
Header set Strict-Transport-Security "max-age=3600" env=USE_HTTPS
What I'm trying to do is work out a code for our customers who use SSL for their main domain and don't want ssl for their subdomains.

We have a tool that clones the website to a new subdomain and also copies the .htaccess file and I want to set Strict-Transport-Security that is only used when the customer is on his main domain and not when the same .htaccess file is used on a subdomain.

If this doesn't work, is there another way to do it ?

Thanks
 
Top