# Deny access to .htaccess
<Files .htaccess>
Order allow,deny
Deny from all
</Files>

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ https://%{HTTPS_HOST}%{REQUEST_URI} [L,R=301]

RedirectMatch 403 ^~/data/?$

RewriteEngine Off
ErrorDocument 400 /400.html
ErrorDocument 401 /401.html
ErrorDocument 402 /402.html
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
ErrorDocument 405 /405.html
ErrorDocument 405 /408.html
ErrorDocument 500 /500.html
ErrorDocument 505 /505.html
