Pogledajte određenu poruku
Staro 13. 02. 2012.   #1
spezia
član
Certified
 
Datum učlanjenja: 21.05.2010
Lokacija: Nis
Poruke: 54
Hvala: 24
397 "Hvala" u 10 poruka
spezia is on a distinguished roadspezia is on a distinguished roadspezia is on a distinguished roadspezia is on a distinguished roadspezia is on a distinguished road
Default Mod rewrite - uklanjanje .php i codeigniter

Pozdrav,

Ako ima slicna tema nek neko baci link, preko google nisam nasao ono sti mi treba...

recimo imam ovakav url

http://test.localhost/admin.php/skola/profesor/djak

Meni treba da se ukloni .php i da bude

http://test.localhost/admin/skola/profesor/djak

Problem je sto posle ne vidi /skola/profesor/djak i ispisuje
The requested URL was not found on this server.

Probao sam razne tutoriale i nisam razumeo gde gresim..,


Probao sam ovako
Kôd:
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{QUERY_STRING} (.*)  
RewriteRule ^admin$ admin.php/$1 [NC,L]
Meni ovo kaze, ako nadjes u url "admin" zameni sa admin.php... Samo neznam sta cu sa ovim nastavkom /skola/profesor/djak...
spezia je offline   Odgovorite uz citat
223 članova zahvaljuje spezia za poruku:
aaawamois, acheaplv, achelmeyerneilk, aczapiewskshain, aennimancarm, aeprocaccnath, aionscalzconc, alatchawsteve, aliznaroma, allen4jim, amillsapclas, aninaesausatur, anorthfacemens, aoncadarr, arinalva, ariskaahme, arussianbran, asakamakimarc, bilpboyc, btonburt, calmoncenath, caltouchenath, campanellawiley, candchan, cbuynecklaces, ceszucheldr, cfacecheap, cfakecoach, cheapestcheapes, cheaptiffany, clgroschmurie, cmmecare, cstorecanada, cteciuccihenr, dgendant, dokedziersrosen, dorflesnersalva, dswhiddendema, dyejidemcki, eambleclai, eardleyelis, ebuyaccessories, eclawgesrayf, ecoervergabr, econeclar, edressesgreen, eduplerjerr, eeblinetyron, egressettfavi, ejerseynfl, elworstermanue, emathiesokenn, emergelhous, emizeeedmu, encasteranto, engebretsrick, enhaldermjona, enzatimd, eorsearth, epromdesigns, erexk, erisselrosc, ershauerbric, esbissonetulyss, fcheapfitsole, fhrentfrokhad, fuppfide, gearringssivler, ghiangfaus, hlaschalbe, hschherb, htzschneda, iaidimarc, ichristianheels, idvddisney, ihybhatiatimot, iiantanidamarcp, iizzisamo, ijoachimteod, imandarinoveola, inejennieroxan, inmonningequent, iocrationhumb, ioltmeierlynd, ipluvoisestep, irdfinninwinfo, jbenjame, jciajule, jsenajelia, kbierskiaria, kbosaknelle, kdlakrick, kdubykmajor, kelambkaruth, khackduan, klockelmo, komalakowrein, ksaajokuthere, kuzenskimarcn, kwinskiiren, larholburt, lartorellozadam, ldiellobryo, ldoduchschreyna, lemosellerobbi, lempelkell, linodeetermarce, lionlyle, lmesserlymisty, lnemccalebmarli, locellelli, lriedldonn, meistmaikl, menicomeodett, mgronmonte, minsmacw, mjanemiles, mlbaumrosse, mnamark, msematt, naginalme, nbereznycedr, nbrabantarma, ncartooncartoon, nesimankricki, ngreenbackmarti, nielneversnatha, nieningshan, nilvanodust, nipionidieg, nkallenbemaur, nkemaneddi, nnvalentasun, nohlingjeni, norbinshan, nramanyjule, nrtmanwenwe, nsveentreva, ntasklandruper, nteilingayan, nwiegandkatr, oanomar, obertoerro, okristoffflor, olmilhoanhers, orangnowshaun, oronomark, ostudiostudio, otkersonlesl, ottleroehugo, pcheapface, pdekenipproger, piehlphilr, poffenbergmason, prdpala, qlspraquemars, racmurraylize, rahrexv, rallorcole, raynormarl, rdemarckris, rdheminovemayna, redmonstonwarne, renmorebufo, reppsreysh, rlamryan, rlaverestep, rldogarrreyna, rlingeriebuy, rnnagaminewilbu, rransbrowerne, rruppenthatanne, rrymerjaci, rslerkimp, rtbonadonanorbe, rtoontivernorbe, ruhnerrenek, rumbersjoey, rverydresses, rwaversteve, rymyerkrai, sairdiscount, sceeashcons, shelmsdarr, skocsismoshe, soatsomm, sosephsenbust, sowsamd, srdbaisesanfo, sriahnastazacha, stensmaik, stwiesarie, syerssand, tarnetcalv, taslattershaq, tatttobi, teastali, tewittgran, tezabielskyevet, tineheindevalen, tinregestevalen, tizattsolo, tjacketjacket, tolyottjero, tpopptrang, trestimm, tscristedema, tucholtzsamu, uaneinouyesteph, udiscountbags, uolyneuxmarc, uungblutsonyo, vienvert, waskiewichowa, wholesalephones, wholesaleprices, yaircorytiffany, yatelybret, yleraymard, yrleyange, ytelajoyetonet, yumroyarle, zerganzazaneb