diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-10-03 12:59:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-03 12:59:01 +0200 |
commit | ee07b7283faa197fc062ed85f4f96f98e8e77b03 (patch) | |
tree | a5f87d5b472d98a2de5d578d593610297ecee3cd /.htaccess | |
parent | 1db2ebbd79bb82e9e40a7093bbf1bfc50d06b077 (diff) | |
parent | 255b2264a119f4b8cc9fe211c7740906701e15b4 (diff) | |
download | Shaarli-ee07b7283faa197fc062ed85f4f96f98e8e77b03.tar.gz Shaarli-ee07b7283faa197fc062ed85f4f96f98e8e77b03.tar.zst Shaarli-ee07b7283faa197fc062ed85f4f96f98e8e77b03.zip |
Merge pull request #1574 from stoeps13/hosting-fix
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,8 +10,12 @@ RewriteRule ^(.git|doxygen|vendor) - [F] | |||
10 | # fixes JWT token not correctly forwarded on some Apache/FastCGI setups | 10 | # fixes JWT token not correctly forwarded on some Apache/FastCGI setups |
11 | RewriteCond %{HTTP:Authorization} ^(.*) | 11 | RewriteCond %{HTTP:Authorization} ^(.*) |
12 | RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] | 12 | RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] |
13 | # Alternative (if the 2 lines above don't work) | ||
14 | # SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0 | ||
13 | 15 | ||
14 | # REST API | 16 | # REST API |
17 | # Ionos Hosting needs RewriteBase / | ||
18 | # RewriteBase / | ||
15 | RewriteCond %{REQUEST_FILENAME} !-f | 19 | RewriteCond %{REQUEST_FILENAME} !-f |
16 | RewriteCond %{REQUEST_FILENAME} !-d | 20 | RewriteCond %{REQUEST_FILENAME} !-d |
17 | RewriteRule ^ index.php [QSA,L] | 21 | RewriteRule ^ index.php [QSA,L] |