error 404

This commit is contained in:
2025-11-23 03:44:07 +01:00
parent d7aeace4e5
commit f02456f6a2
4 changed files with 59 additions and 0 deletions

View File

@@ -40,3 +40,16 @@ RewriteRule ^(.+?)/?$ $1.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}/index.php -f
RewriteRule ^(.+?)/?$ $1/index.php [L]
###############################################
# 6) Globaler 404-Fallback
# Alles was jetzt noch übrig bleibt → 404-Seite
###############################################
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# systempfade nicht abfangen
RewriteCond %{REQUEST_URI} !^/(assets|uploads|auth|landingpage|_errors)/ [NC]
# interne Weiterleitung auf deine Fehlerseite
RewriteRule ^ _errors/404.php [L]