diff --git a/web/.htaccess b/web/.htaccess index d92fbf86..fe3f387e 100644 --- a/web/.htaccess +++ b/web/.htaccess @@ -264,6 +264,9 @@ AddDefaultCharset utf-8 # Enable URL rewriting RewriteEngine On + RewriteCond %{HTTPS} off + RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L] + # Store the current location in an environment variable CWD to use # mod_rewrite in .htaccess files without knowing the RewriteBase RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$