0f8deda6a3
Sync with Pico 1.0.3; see ee5b4f0
23 lines
676 B
ApacheConf
23 lines
676 B
ApacheConf
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
# May be required to access sub-directories
|
|
#RewriteBase /
|
|
|
|
# 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 ^(CHANGELOG.md|composer.(json|lock)) index.php [L]
|
|
|
|
# Enable URL rewriting
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^ index.php [L]
|
|
|
|
<IfModule mod_env.c>
|
|
# Let Pico know about available URL rewriting
|
|
SetEnv PICO_URL_REWRITING 1
|
|
</IfModule>
|
|
</IfModule>
|
|
|
|
# Prevent file browsing
|
|
Options -Indexes -MultiViews
|