Pogledajte određenu poruku
Staro 01. 10. 2009.   #9
mileusna
Super Moderator
Knowledge base
 
Datum učlanjenja: 20.03.2006
Lokacija: Kragujevac
Poruke: 1.878
Hvala: 291
1.345 "Hvala" u 355 poruka
mileusna je jednostavno dobarmileusna je jednostavno dobarmileusna je jednostavno dobarmileusna je jednostavno dobarmileusna je jednostavno dobarmileusna je jednostavno dobarmileusna je jednostavno dobarmileusna je jednostavno dobarmileusna je jednostavno dobarmileusna je jednostavno dobar
Default

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...

Poslednja izmena od mileusna : 01. 10. 2009. u 17:52.
mileusna je offline   Odgovorite uz citat
"Hvala" mileusna za poruku: