Added errordocs

This commit is contained in:
Philip 2021-12-12 12:22:14 +01:00
parent 059e0057ec
commit 924602e3f1

View file

@ -7,7 +7,7 @@ RewriteBase /
RewriteEngine on
# Redirect all to index
FallbackResource /index.php
# FallbackResource /index.php
# Redirect "datenschutz" to "privacy-policy"
RewriteRule datenschutz privacy-policy [L,R=301]
@ -15,6 +15,9 @@ RewriteRule datenschutz privacy-policy [L,R=301]
# UTF-8 Endcoding
AddDefaultCharset UTF-8
ErrorDocument 404 https://vegancheck.me
ErrorDocument 403 https://vegancheck.me
# Don't require .php/.html ending
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f