.htaccess 551 B

1234567891011121314151617181920212223
  1. # Disable directory listing
  2. Options -Indexes
  3. RewriteEngine On
  4. # Prevent accessing subdirectories not managed by SCM
  5. RewriteRule ^(.git|doxygen|vendor) - [F]
  6. # Forward the "Authorization" HTTP header
  7. RewriteCond %{HTTP:Authorization} ^(.*)
  8. RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
  9. # REST API
  10. RewriteCond %{REQUEST_FILENAME} !-f
  11. RewriteCond %{REQUEST_FILENAME} !-d
  12. RewriteRule ^ index.php [QSA,L]
  13. <Limit GET POST PUT DELETE OPTIONS>
  14. Require all granted
  15. </Limit>
  16. <LimitExcept GET POST PUT DELETE OPTIONS>
  17. Require all denied
  18. </LimitExcept>