How to .htaccess redirect all http to https

Use .Htaccess as below 

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [NE,L,R=301]
</IfModule>

Hai trovato questa risposta utile?

 Stampa Articolo