Use Pico's 404.md to deny access to lib, content... dirs

This commit is contained in:
Daniel Rudolf 2016-04-24 04:06:40 +02:00
parent 6234be88b0
commit 49cb6c144a
No known key found for this signature in database
GPG key ID: A061F02CD8DE4538

View file

@ -1,11 +1,11 @@
<IfModule mod_rewrite.c>
RewriteEngine On
#May be required to access sub-directories
# May be required to access sub directories
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L,QSA]
RewriteRule ^(config|content|content-sample|lib|vendor)/.* - [R=404,L]
RewriteRule ^(.git|config|content|content-sample|lib|vendor)/.* index.php?404 [L]
<IfModule mod_env.c>
SetEnv PICO_URL_REWRITING 1