Created
January 27, 2015 13:35
-
-
Save evemilano/af8dce698f81b123e891 to your computer and use it in GitHub Desktop.
Forzare l'accesso sotto HTTPS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Usare sempre HTTPS per le connessioni sicure | |
| #Sostituisci 'www.example.com' con il tuo dominio così come appare sul certificato HTTPS | |
| RewriteEngine On | |
| RewriteCond %{SERVER_PORT} 80 | |
| RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Articolo: https://www.evemilano.com/2014/10/esempi-mod-rewrite-htaccess-apache/