Skip to content

Instantly share code, notes, and snippets.

@evemilano
Created January 27, 2015 13:35
Show Gist options
  • Select an option

  • Save evemilano/af8dce698f81b123e891 to your computer and use it in GitHub Desktop.

Select an option

Save evemilano/af8dce698f81b123e891 to your computer and use it in GitHub Desktop.
Forzare l'accesso sotto HTTPS
#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]
@evemilano
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment