diff --git a/config/.htaccess b/config/.htaccess index 77e1e87..d5802a7 100644 --- a/config/.htaccess +++ b/config/.htaccess @@ -1,10 +1,19 @@ # BEGIN WordPress RewriteEngine On +RewriteCond %{HTTPS} !=on +RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] + RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] + # END WordPress + +# BEGIN HSTS (HTTP Strict Transport Security) + +Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains" +