# Turn Rewrite Engine On
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.gfam\.altervista\.org$
RewriteRule (.*) http://www\.gfam\.it/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^gfam\.altervista\.org$
RewriteRule (.*) http://www\.gfam\.it/$1 [R=301,L]
# Force SSL
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# BEGIN WordPress
# Le direttive (linee) tra `BEGIN WordPress` e `END WordPress` sono
# generate dinamicamente, e dovrebbero essere modificate solo tramite i filtri di WordPress.
# Ogni modifica alle direttive tra questi marcatori verrÃ* sovrascritta
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress