VirtualTam 2018-01-20 16:20:53 +01:00
parent 91f17fc92a
commit cabf1b6bec
1 changed files with 8 additions and 0 deletions

View File

@ -1,4 +1,12 @@
# Disable directory listing
Options -Indexes
RewriteEngine On
# Prevent accessing subdirectories not managed by SCM
RewriteRule ^(.git|doxygen|vendor) - [F]
# REST API
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]