Pico/.htaccess
Daniel Rudolf fbb744dd43 Deny access to config, content, content-sample, lib and vendor dirs
Send 404 Not Found instead of 403 Forbidden
2015-10-01 22:42:23 +02:00

17 lines
443 B
ApacheConf

<IfModule mod_rewrite.c>
RewriteEngine On
#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]
<IfModule mod_env.c>
SetEnv PICO_URL_REWRITING 1
</IfModule>
</IfModule>
# Prevent file browsing
Options -Indexes