Update .htaccess

Sync with Pico 1.0.3; see ee5b4f0
This commit is contained in:
Daniel Rudolf 2016-04-27 21:07:59 +02:00
parent e01044319a
commit 0f8deda6a3
No known key found for this signature in database
GPG key ID: A061F02CD8DE4538

View file

@ -3,8 +3,9 @@
# May be required to access sub-directories # May be required to access sub-directories
#RewriteBase / #RewriteBase /
# Deny access to internal dirs by passing the URL to Pico # Deny access to internal dirs and files by passing the URL to Pico
RewriteRule ^(.git|config|content|content-sample|lib|vendor)(/|$) index.php [L] RewriteRule ^(\.git|config|content|content-sample|lib|vendor)(/|$) index.php [L]
RewriteRule ^(CHANGELOG.md|composer.(json|lock)) index.php [L]
# Enable URL rewriting # Enable URL rewriting
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f