VirtualTam 2018-01-20 16:20:53 +01:00
parent 91f17fc92a
commit cabf1b6bec

View file

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