Options -Indexes

# Pretty URLs: anything that is not a real file or directory is handled by index.php.
# Relative RewriteRule target works from any subfolder (no RewriteBase needed).
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ index.php [L]

    # Tells the app that this file is honoured AND mod_rewrite is loaded, so it may emit
    # pretty links. Without it (AllowOverride None, no mod_rewrite) links use index.php/...
    <IfModule mod_env.c>
        SetEnv APP_PRETTY_URLS 1
    </IfModule>
</IfModule>

# Image uploads are limited to 5 MB by the app; make sure PHP itself accepts that much
# (Ubuntu's default upload_max_filesize is 2M). Only applies with mod_php; for PHP-FPM
# set the same in php.ini or .user.ini.
<IfModule mod_php.c>
    php_value upload_max_filesize 8M
    php_value post_max_size 40M
</IfModule>

# Never serve dotfiles, docs, SQL or logs.
<FilesMatch "(^\.|\.(md|sql|log|lock|example\.php)$)">
    Require all denied
</FilesMatch>

# Some older Apache/mime.types installs do not know this extension; the self-hosted
# Montserrat subsets under assets/vendor/fonts need the right content-type to load.
<IfModule mod_mime.c>
    AddType font/woff2 .woff2
</IfModule>
