I have a page that is called with a url like
http://testserver/path/to/foo/bar/
but apache is serving the wrong file altogether.
/path/to/ tüm kodu ve .htaccess dosyası gerçek bir dizin. foo/bar/ bir RewriteRule ile foo_bar.php yönlendirmek gerekiyordu, ama orada alır asla. Ben bu istek için bana 404s vermelidir karışıyor olabilir tüm kuralları, dışarı yorumladı var, ama aynı sorun oluşur gibi bir mod_rewrite sorunu değil:
the file that is served is /path/to/foo.php, so in it I var_dump $_SERVER and get:
REQUEST_URI = /path/to/foo/bar/
SCRIPT_NAME = /path/to/foo.php
SCRIPT_FILENAME = /real/path/to/foo.php
PATH_INFO = /bar/
PATH_TRANSLATED = /real/bar/
PHP_SELF = /path/to/foo.php/bar/
Neden bu isteği tüm bu dosyaya yönlendirilir ediliyor?