diff options
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,4 +1,12 @@ | |||
1 | # Disable directory listing | ||
2 | Options -Indexes | ||
3 | |||
1 | RewriteEngine On | 4 | RewriteEngine On |
5 | |||
6 | # Prevent accessing subdirectories not managed by SCM | ||
7 | RewriteRule ^(.git|doxygen|vendor) - [F] | ||
8 | |||
9 | # REST API | ||
2 | RewriteCond %{REQUEST_FILENAME} !-f | 10 | RewriteCond %{REQUEST_FILENAME} !-f |
3 | RewriteCond %{REQUEST_FILENAME} !-d | 11 | RewriteCond %{REQUEST_FILENAME} !-d |
4 | RewriteRule ^ index.php [QSA,L] | 12 | RewriteRule ^ index.php [QSA,L] |