[TYPO3-german] Rewrite Rule endet in 400 Bad Request

Lucas G. lug at gecko.de
Fri May 19 09:17:14 CEST 2017


Hi,

in meiner .htaccess steht als letzte rewrite rule die folgende, um nicht existierende pfade zur index.php weiterzuleiten, die dann eine 404 fehlerpage anzeigen soll:
[code]
	# If the file/symlink/directory does not exist => Redirect to index.php.
	# For httpd.conf, you need to prefix each '%{REQUEST_FILENAME}' with '%{DOCUMENT_ROOT}'.
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteCond %{REQUEST_FILENAME} !-l
	RewriteRule ^.*$ %{ENV:CWD}index.php [QSA,L]
[/code]

Leider funktioniert dies nicht, wenn man zum Beispiel domain.de/isebfajwnd aufruft endet das nur in 400 Bad Request, der Apache Log ist trotz loglevel trace8 auch sehr mager:
[code]
[Fri May 19 08:52:48.752151 2017] [core:debug] [pid 26370] protocol.c(959): (22)Invalid argument: [client ***] Failed to read request header line Host: www.domain.de
[Fri May 19 08:52:48.752270 2017] [core:debug] [pid 26370] protocol.c(1312): [client ****] AH00567: request failed: error reading the headers
[/code]

Wenn ich die rewrite rule auskommentiere kommt die standardfehlermeldung von apache, dass dieses verzeichnis nicht existiert.
Hat jemand eine Idee, was an der RewriteRule falsch ist?



More information about the TYPO3-german mailing list