aboutsummaryrefslogtreecommitdiffhomepage
path: root/.htaccess
diff options
context:
space:
mode:
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess13
1 files changed, 13 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index 4c004271..5acd708e 100644
--- a/.htaccess
+++ b/.htaccess
@@ -6,10 +6,23 @@ RewriteEngine On
6# Prevent accessing subdirectories not managed by SCM 6# Prevent accessing subdirectories not managed by SCM
7RewriteRule ^(.git|doxygen|vendor) - [F] 7RewriteRule ^(.git|doxygen|vendor) - [F]
8 8
9RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
10RewriteRule ^(.*) - [E=BASE:%1]
11
12RewriteCond %{ENV:REDIRECT_BASE} (.+)
13RewriteRule .* - [E=BASE:%1]
14
9# Forward the "Authorization" HTTP header 15# Forward the "Authorization" HTTP header
10RewriteCond %{HTTP:Authorization} ^(.*) 16RewriteCond %{HTTP:Authorization} ^(.*)
11RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] 17RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
12 18
19RewriteCond %{REQUEST_FILENAME} !-f
20RewriteCond %{REQUEST_FILENAME} !-d
21RewriteRule ^((?!api/)[^/]*)/?(.*)$ $2?%{QUERY_STRING} [E=USERSPACE:$1]
22
23RewriteCond %{ENV:REDIRECT_USERSPACE} (.+)
24RewriteRule .* - [E=USERSPACE:%1]
25
13# REST API 26# REST API
14RewriteCond %{REQUEST_FILENAME} !-f 27RewriteCond %{REQUEST_FILENAME} !-f
15RewriteCond %{REQUEST_FILENAME} !-d 28RewriteCond %{REQUEST_FILENAME} !-d