Howto - do 8.4.4 https secure?

Permalink
Hi:-)
Somewone hwo knows how to do my webpage https secure - so it be https://in the adressfield in web-browsers and not like now http:// ??????

regards
Geir Johansen

Falconova
 
echan101 replied on at Permalink Reply
This is not really a Concrete5 function. It is a .htaccess function.

This worked for me - just add a file called .htaccess to /htdocs (your root directory that serves webpages - basically the same directory that has index.php)

# Fromhttps://simonecarletti.com/blog/2016/08/redirect-domain-http-https-w...
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^http://www.%1%{REQUEST_URI} [L,NE,R=301]