RewriteEngine On # May be required to access sub-directories #RewriteBase / # Deny access to internal dirs by passing the URL to Pico RewriteRule ^(.git|config|content|content-sample|lib|vendor)(/|$) index.php [L] # Enable URL rewriting RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ index.php [L] # Let Pico know about available URL rewriting SetEnv PICO_URL_REWRITING 1 # Prevent file browsing Options -Indexes -MultiViews