htaccess

On top of Kirby CMS default content in .htaccess file there are few things we added.

Security option for Apache server

Options -Indexes

Kirby 3 Fingerprint plugin

And code needed for Kirby 3 Fingerprint plugin to work

# Fingerprint plugin
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.([0-9a-z]{32})\.(js|css)$ $1.$3 [L]

Browser caching

We didn't add and code for Browser caching, but for your production .htaccess it would probably be wise to add.

Resources you can look into for this:

But be careful, you should know what you are doing.

Last updated