Auszug aus der
Dokumentation
Code:
REQUEST_URI
The resource requested in the HTTP request line. (In the example above, this would be "/index.html".)
REQUEST_FILENAME
The full local filesystem path to the file or script matching the request.
Demnach fehlt also mindestens ein / vor dem Katalog, weil REQUEST_FILENAME laut Doku einen kompletten Dateisystem-Pfad angegeben werden muß.
Ich bin trotzdem der Meinung, dass REQUEST_URI der richtige Weg ist, da z.B. die Joomla htaccess es ebenso macht. Beispiel:
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
Die REQUEST_FILENAME Zeilen hier prüfen, ob die angeforderte Datei ein Verzeichnis oder eine Datei ist. (Also eine typische dateisystem-typische Angelegenheit)
Aber vermutlich gibt es verschiedene Lösungswege.
