# 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](https://github.com/bnomei/kirby3-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.&#x20;

Resources you can look into for this:

* Short explanation <https://gtmetrix.com/leverage-browser-caching.html>
* Longer explanation <https://varvy.com/pagespeed/cache-control.html>
* A large set of possible options <https://github.com/h5bp/html5-boilerplate/blob/master/dist/.htaccess>

{% hint style="warning" %}
But be careful, you should know what you are doing.
{% endhint %}
