element Posted August 9, 2006 Report Share Posted August 9, 2006 Vai un kaa ir iespeejams nerakstiit address bar'aa pilnu filename.php ierakstot tikai filename bez paplashinaajuma galaa, un tiktu atveerts tas pats php fails? Link to comment Share on other sites More sharing options...
Delfins Posted August 9, 2006 Report Share Posted August 9, 2006 rewrite rule Link to comment Share on other sites More sharing options...
element Posted August 9, 2006 Author Report Share Posted August 9, 2006 (edited) uzrakstiisi kaadu paraugu, jo apache dokumentaacija ir mokoshi gara un sarezhgjiita, iipashi tad, ja rezultaatu vajag redzeet peec iespeejas aatraak :/ Edited August 9, 2006 by element Link to comment Share on other sites More sharing options...
v3rb0 Posted August 9, 2006 Report Share Posted August 9, 2006 (edited) vai arī ar folderiem bez jebkāda mod_rewrite. produkcti/index.php - http://lapa.lv/produkcti grozinsh/index.php - http://lapa.lv/grozinsh useris/index.php - http://lapa.lv/useris utt/index.php - http://lapa.lv/utt Edited August 9, 2006 by v3rb0 Link to comment Share on other sites More sharing options...
Delfins Posted August 9, 2006 Report Share Posted August 9, 2006 Tev nav jālas visa dokumentācija... tikai mod_rewrite sadaļa.. tur ir pat piemēri... Link to comment Share on other sites More sharing options...
andrisp Posted August 9, 2006 Report Share Posted August 9, 2006 Bij vēl arī apacham kaut kāds modulis, kas cenšas "uzminēt", kurš fails jāatver. Tipa, ja neatrod failu 'produkti', tad skatās vai nav kāds līdzīgs fails, piem., produkti.php vai produkti.html. Bet nu es tādu metodi neatbalstu. Labāk tad ar mod_rewrite vai v3rb0 metodi. Link to comment Share on other sites More sharing options...
element Posted August 9, 2006 Author Report Share Posted August 9, 2006 folderi nav tas tomeer kas man ir vajadziigs. uzmetu aci apache rewriterule, diemzheel neko nesapratu.. vai var kaads paliidzeet? Link to comment Share on other sites More sharing options...
andrisp Posted August 9, 2006 Report Share Posted August 9, 2006 Izskatās, ka normāla step-by-step pamācība, obligāti izlasi: http://www.sitepoint.com/article/guide-url-rewriting Link to comment Share on other sites More sharing options...
J0ke Posted August 9, 2006 Report Share Posted August 9, 2006 tev vajag uzlikt MultiViews apacim konfigā vai .htaccess failā pie options tad spamparam.lv/spam.php būs = spamparam.lv/spam nesaprotu ko visi mūžīgi bāž acīs cilvēkiem mod_rewrite... Link to comment Share on other sites More sharing options...
Delfins Posted August 9, 2006 Report Share Posted August 9, 2006 (edited) a man piemēram apacis pats pieliek klāt extensiju,... defaultā konfigurācija... Tas skatās opciju Multiviews (http://httpd.apache.org/docs/1.3/content-negotiation.html) PS: sory, DirectoryIndex dara ko citu Edited August 9, 2006 by Delfins Link to comment Share on other sites More sharing options...
andrisp Posted August 9, 2006 Report Share Posted August 9, 2006 tev vajag uzlikt MultiViews apacim konfigā vai .htaccess failā pie options tad spamparam.lv/spam.php būs = spamparam.lv/spam nesaprotu ko visi mūžīgi bāž acīs cilvēkiem mod_rewrite... Pag, tad sanāk, ka katram jaunizveidotam failam man jāveido attiecīgais ieraksts .htaccess failā ? Manuprāt - kaut kā nelabi. Link to comment Share on other sites More sharing options...
J0ke Posted August 9, 2006 Report Share Posted August 9, 2006 (edited) tu jocīgs vai kā? tas darbojas uz visiem failiem :D spamparam.lv/spam.php = spamparam.lv/spam spamparam.lv/megauber_songa.mp3 = spamparam.lv/megauber_songa spamparam.lv/megabilde.jpg = spamparam.lv/megabilde Edited August 9, 2006 by J0ke Link to comment Share on other sites More sharing options...
andrisp Posted August 9, 2006 Report Share Posted August 9, 2006 eh, saputrojos Link to comment Share on other sites More sharing options...
element Posted August 9, 2006 Author Report Share Posted August 9, 2006 gracia, viss straadaa kaa plaanots. Link to comment Share on other sites More sharing options...
Recommended Posts