2015-05-25 11:51:18 +00:00
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
RewriteEngine On
|
2016-04-24 02:06:40 +00:00
|
|
|
# May be required to access sub directories
|
2015-05-25 11:51:18 +00:00
|
|
|
#RewriteBase /
|
2016-04-24 18:11:05 +00:00
|
|
|
|
2016-04-27 19:07:59 +00:00
|
|
|
# Deny access to internal dirs and files by passing the URL to Pico
|
2017-12-24 12:58:42 +00:00
|
|
|
RewriteRule ^(config|content|content-sample|lib|vendor)(/|$) index.php [L]
|
2022-02-26 20:53:38 +00:00
|
|
|
RewriteRule ^(CHANGELOG\.md|SECURITY.md|composer\.(json|lock|phar))(/|$) index.php [L]
|
2017-12-24 12:58:42 +00:00
|
|
|
RewriteRule (^\.|/\.)(?!well-known(/|$)) index.php [L]
|
2016-04-24 18:11:05 +00:00
|
|
|
|
|
|
|
# Enable URL rewriting
|
2015-05-25 11:51:18 +00:00
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
2016-04-24 18:11:05 +00:00
|
|
|
RewriteRule ^ index.php [L]
|
2015-08-28 16:37:36 +00:00
|
|
|
|
|
|
|
<IfModule mod_env.c>
|
2016-04-24 18:11:05 +00:00
|
|
|
# Let Pico know about available URL rewriting
|
2015-08-28 16:37:36 +00:00
|
|
|
SetEnv PICO_URL_REWRITING 1
|
|
|
|
</IfModule>
|
2012-04-04 13:45:09 +00:00
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
# Prevent file browsing
|
2016-02-24 22:27:35 +00:00
|
|
|
Options -Indexes -MultiViews
|