Ako želiš takvo ponašanje, da npr. /kontakt bude isto što i /kontakt.php treba da enejbluješ MultiViews Apache opciju.
Citat:
MultiViews is a per-directory option, meaning it can be set with an Options directive within a <Directory>, <Location> or <Files> section in httpd.conf, or (if AllowOverride is properly set) in .htaccess files. Note that Options All does not set MultiViews; you have to ask for it by name.
The effect of MultiViews is as follows: if the server receives a request for /some/dir/foo, if /some/dir has MultiViews enabled, and /some/dir/foo does not exist, then the server reads the directory looking for files named foo.*, and effectively fakes up a type map which names all those files, assigning them the same media types and content-encodings it would have if the client had asked for one of them by name. It then chooses the best match to the client's requirements.
itd. itd. http://httpd.apache.org/docs/2.2/mod...gotiation.html
|
Elem, MultiViews je često i izvor mnogih problema kada se koristi u kombinaciji sa mod_rewrite. Kada neki rewrite neobjašnjivo ne radi kako treba, obično prvo treba isključiti MultiViews. Zato ga ja po defaultu isključujem svuda.
Ali ako samo želiš da se ne vidi php ekstenzija, trebalo bi da bude OK, zato su ga valjda i napravili...