summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authorJean-François Fortin Tam <nekohayo@gmail.com>2018-07-22 09:11:30 -0400
committerFrédéric Guillot <fred@kanboard.net>2018-07-23 12:49:14 -0700
commit88228c3510a604b2f9682c06642987d1cd1dba11 (patch)
tree9b4cc851c84c67811bc5a20158d023b871f77e60 /.htaccess
parent34909f771018adff524cff3c76b7bb8b2afa1c91 (diff)
When forcing HTTPS, handle subfolder URLs properly
This fixes the redirection for Kanboard instances in subdirectories (ex: /foo/bar/kanboard instead of the vhost's document root)
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess2
1 files changed, 1 insertions, 1 deletions
diff --git a/.htaccess b/.htaccess
index 7bfd6a95..f28b0ca7 100644
--- a/.htaccess
+++ b/.htaccess
@@ -26,7 +26,7 @@
############################
# RewriteCond %{HTTPS} !=on
- # RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
+ # RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</IfModule>
<IfModule pagespeed_module>