rewrite funktioniert und wenn ich den alleine schon funktionierenden error code dran hänge geht nur rewrite.
allerdings werden dann nicht die standart errorseite angezeigt (sie vom webhoster) sondern eine englische error seite die ich ned programmiert habe
Code: Select all
# === REWRITE ===
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
# === ERROR PAGES ===
# / vor dem Link bedeutet vom root-Verzeichniss aus
ErrorDocument 404 /error404.html
ErrorDocument 403 /error403.html
ErrorDocument 503 /error503.html