Options -Indexes

# Redirect to HTTPS (uncomment when SSL is active)
# RewriteEngine On
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Protect includes folder
<FilesMatch "^.*$">
    Order Allow,Deny
    Allow from all
</FilesMatch>

# Custom error pages
ErrorDocument 404 /index.php
ErrorDocument 403 /index.php

# PHP settings
php_value session.cookie_httponly 1
php_value session.use_strict_mode 1
