error 404
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user