humhub/.htaccess.dist

21 lines
595 B
Plaintext
Raw Normal View History

# check if RewriteModule is availbale
<IfModule mod_rewrite.c>
RewriteEngine on
2014-02-10 06:36:00 +01:00
# prevent httpd from serving dotfiles (.htaccess, .svn, .git, etc.) - except let's encrypt challenge
RedirectMatch 403 ^/?\.(?!/well-known/acme-challenge/[\w-]{43}$)
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
# Sets the HTTP_AUTHORIZATION header removed by apache
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
2014-02-10 06:36:00 +01:00
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L]
2014-02-10 06:36:00 +01:00
RewriteRule .? %{ENV:BASE}/index.php [L]
</IfModule>