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>

Esta resposta lhe foi útil?

 Imprimir este Artigo