About HTTPs enforce and .htaccess
-
Hello! SG
I would like to consult about this option – Enforce HTTPS.
AFAI try, checking this option adds the following settings to .htaccessRewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]But sometimes it only adds this
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]To what circumstance, it do not output ^www… ?
Does this related to site builtin Cloudflare support?
I am using the recommended free plan for some client sites. While I have also subscribed to Cloudflare Business for some other clients.Many thanks.
- The topic ‘About HTTPs enforce and .htaccess’ is closed to new replies.