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