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?

_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an