]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - .htaccess
htaccess: prevent accessing resources not managed by SCM
[github/shaarli/Shaarli.git] / .htaccess
CommitLineData
4c2f5125
V
1# Disable directory listing
2Options -Indexes
3
18e67967 4RewriteEngine On
4c2f5125
V
5
6# Prevent accessing subdirectories not managed by SCM
7RewriteRule ^(.git|doxygen|vendor) - [F]
8
9# REST API
18e67967
A
10RewriteCond %{REQUEST_FILENAME} !-f
11RewriteCond %{REQUEST_FILENAME} !-d
12RewriteRule ^ index.php [QSA,L]