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