.htaccess in DOCUMENT_ROOT:
ErrorDocument 401 /error.html
ErrorDocument 403 /error.html
ErrorDocument 404 /error.html
ErrorDocument 500 /error.html
Options +Includes
AddOutputFilter INCLUDES .html .htm
RewriteEngine On
RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{HTTP_HOST} !^kico4u\.de$ [NC]
RewriteRule ^(.*)$ https://kico4u.de/$1 [R=301,L]
DOCUMENT_ROOT/templates/.htaccess:
Require all denied
DOCUMENT_ROOT/error.html: (Example)
<!DOCTYPE html>
<html>
<head>
<title>Ups! Error!</title>
<meta name="expires" content="NOW">
<meta name="robots" content="noindex, follow">
</head>
<body>
<h1>Ups! Error!</h1>
<hr>
<p>Sorry for this!</p>
</body>
</html>