Files
Kanboard-Prod/.htaccess
Jean-François Fortin Tam 88228c3510 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)
2018-07-23 12:49:14 -07:00

35 lines
913 B
ApacheConf

# Pass HTTP Authorization header via environment variable to PHP backend
# to make HTTP Basic Authentication work for Apache/FastCGI/php-fpm
# setups (required to authenticate over the API)
<IfModule mod_setenvif.c>
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
</IfModule>
<IfModule mod_rewrite.c>
Options -MultiViews
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>
# Uncomment this line depending of your Apache configuration
# RewriteBase /
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
############################
## Uncomment the two lines below to enable force HTTPS capabilities
############################
# RewriteCond %{HTTPS} !=on
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</IfModule>
<IfModule pagespeed_module>
ModPagespeed Off
</IfModule>