PWaddict Posted February 22, 2016 Share Posted February 22, 2016 Hello, I would like to force the entire site to https. Should I do it on htaccess or on templates. Is there any difference? Thanks! Link to comment Share on other sites More sharing options...
teppo Posted February 22, 2016 Share Posted February 22, 2016 If you want HTTPS for the entire site, do it via .htaccess. That's more efficient. Template setting is an easy way to force it on for specific templates only. 2 Link to comment Share on other sites More sharing options...
adrian Posted February 22, 2016 Share Posted February 22, 2016 From the default PW htaccess file: # ----------------------------------------------------------------------------------------------- # If you only want to allow HTTPS, uncomment the RewriteCond and RewriteRule lines below. # ----------------------------------------------------------------------------------------------- # RewriteCond %{HTTPS} off # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 1 Link to comment Share on other sites More sharing options...
PWaddict Posted February 22, 2016 Author Share Posted February 22, 2016 From the default PW htaccess file: # ----------------------------------------------------------------------------------------------- # If you only want to allow HTTPS, uncomment the RewriteCond and RewriteRule lines below. # ----------------------------------------------------------------------------------------------- # RewriteCond %{HTTPS} off # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Yeah, I know about it. I was just wondering if there is any difference. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now