
Apache + .htaccess
È possibile aggiungere le seguenti regole al file. htaccess per imporrehttpsVisita:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Il file. htaccess modificato è il seguente:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Aggiungere la seguente regola per imporre l'HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>






Aggiungi amici