X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=.htaccess;h=19dd72a805e7b3bd170c87aabb25ad4764ca179a;hb=4c2f51256f2c914a10c0c7aa59311c5862d2a480;hp=66ef8f69ce39e127dc266c9ab3727c4b8be4f9fa;hpb=06ca7c102ba058d99f19e614023c539dbdb58b36;p=github%2Fshaarli%2FShaarli.git diff --git a/.htaccess b/.htaccess index 66ef8f69..19dd72a8 100644 --- a/.htaccess +++ b/.htaccess @@ -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]