From 8ef243e823d48510a5ddd78b06aa2096ab7cd15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Fri, 14 Sep 2018 11:00:57 +0200 Subject: [PATCH] Force https for local environment as well --- web/.htaccess | 3 +++ 1 file changed, 3 insertions(+) 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$