aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/websites/templates/vhost_www.conf
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/websites/templates/vhost_www.conf')
-rw-r--r--deployment/websites/templates/vhost_www.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/deployment/websites/templates/vhost_www.conf b/deployment/websites/templates/vhost_www.conf
index c7634759..79ac0ee1 100644
--- a/deployment/websites/templates/vhost_www.conf
+++ b/deployment/websites/templates/vhost_www.conf
@@ -9,4 +9,5 @@ ErrorDocument 404 /404.php
php_value short_open_tag false
# switch all to https
+RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]