diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-07-05 20:47:26 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2018-07-05 20:47:26 +0200 |
commit | 6410bf96707e381685b7dafbefcccd83ea762934 (patch) | |
tree | a970cc7aab1e409f98fa15bd2f5350ac04ebf417 /.htaccess | |
parent | 7c57bd95383ec7a7d40735957ea9a792c370b5db (diff) | |
download | Shaarli-6410bf96707e381685b7dafbefcccd83ea762934.tar.gz Shaarli-6410bf96707e381685b7dafbefcccd83ea762934.tar.zst Shaarli-6410bf96707e381685b7dafbefcccd83ea762934.zip |
API - Apache - Specify allowed HTTP method in .htaccess
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -14,3 +14,10 @@ RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] | |||
14 | RewriteCond %{REQUEST_FILENAME} !-f | 14 | RewriteCond %{REQUEST_FILENAME} !-f |
15 | RewriteCond %{REQUEST_FILENAME} !-d | 15 | RewriteCond %{REQUEST_FILENAME} !-d |
16 | RewriteRule ^ index.php [QSA,L] | 16 | RewriteRule ^ index.php [QSA,L] |
17 | |||
18 | <Limit GET POST PUT DELETE OPTIONS> | ||
19 | Require all granted | ||
20 | </Limit> | ||
21 | <LimitExcept GET POST PUT DELETE OPTIONS> | ||
22 | Require all denied | ||
23 | </LimitExcept> | ||