artis Posted February 6, 2004 Report Share Posted February 6, 2004 Ja man ir index.php fails, kuraa ir includota pirmaa saita lapa, sakiet man plz, vai "META Keywoadrs" labaak vajadzeetu likt tajaa index failaa, vai man to jaaliek tajaa saita pirmajaa lapaa? Link to comment Share on other sites More sharing options...
Robis Posted February 6, 2004 Report Share Posted February 6, 2004 Vari uztaisiit failu, piemeeram, header.php, kur buus <html><head>un viss, kas ir sheit</head>... Un tad vienkaarshi includot indexa saakumaa! Link to comment Share on other sites More sharing options...
Kikko Posted February 6, 2004 Report Share Posted February 6, 2004 Nu uzmanīgi ar php+keywords, citāts no Googles: If you decide to use dynamic pages (i.e., the URL contains a '?' character), be aware that not every search engine spider crawls dynamic pages as well as static pages. It helps to keep the parameters short and the number of them small. Respektīvi search engini nemīl dinamiski ģenerētas lapas...nemīl un viss. :( Link to comment Share on other sites More sharing options...
Kaklz Posted February 6, 2004 Report Share Posted February 6, 2004 Nu uzmanīgi ar php+keywords, citāts no Googles:If you decide to use dynamic pages (i.e., the URL contains a '?' character), be aware that not every search engine spider crawls dynamic pages as well as static pages. It helps to keep the parameters short and the number of them small. Respektīvi search engini nemīl dinamiski ģenerētas lapas...nemīl un viss. :( Precīzāk būtu, ja tu teiktu, ka dažiem search enginiem nepatīk linki, kuros ir ?. Ar dinamiski ģenerētām lapām tam būs mazāks sakars, jo ir virkne paņēmienu, kā izvairīties no ? simbola. Link to comment Share on other sites More sharing options...
Robis Posted February 6, 2004 Report Share Posted February 6, 2004 Un tieshi par to man ir jautaajums KaklZ: Respektiivi, kaa var uztaisiit, ka url izskataas shaads, piemeeram: http://www.doma.lv/54/342/234 vai arii: http://www.doma.lv/index.php?asdf/324/adf/23 vai arii: http://www.delfi.lv/news/world/ nu, vienuvaardu sakot, kaa veel var nodot $_GET mainiigos? Link to comment Share on other sites More sharing options...
Kaklz Posted February 7, 2004 Report Share Posted February 7, 2004 Un tieshi par to man ir jautaajums KaklZ:Respektiivi, kaa var uztaisiit, ka url izskataas shaads, piemeeram: http://www.doma.lv/54/342/234 vai arii: http://www.doma.lv/index.php?asdf/324/adf/23 vai arii: http://www.delfi.lv/news/world/ nu, vienuvaardu sakot, kaa veel var nodot $_GET mainiigos? Google for: search engine friendly urls with php Iegūstam teiksim: http://www.evolt.org/article/Search_Engine...html%2522&e=912 un http://www.phpfreaks.com/tutorials/23/0.php&e=912 Link to comment Share on other sites More sharing options...
Robis Posted February 7, 2004 Report Share Posted February 7, 2004 (edited) Un taatad, kaa es varu paarveerst shaadu url: http://www.something.lv/user/lapa/index.ph...ref=2052&show=2 Sho url, vinjsh ir bishkj saiisinaajis, peec lapa/ naak: index.php?lang=lv&page=110&ref=2052&show=2 piemeeram par: http://www.something.lv/user/lapa/lv/110/2052/2 ??? Vai tur ir jaachakaree Apache, vai arii php skriptaa tas arii jaaiestraadaa??? Edited February 7, 2004 by Robis Link to comment Share on other sites More sharing options...
hu_ha Posted February 7, 2004 Report Share Posted February 7, 2004 tur ir jaamoca apaches confog fails (vai arii htaccess) http://httpd.apache.org/docs/mod/mod_rewrite.html http://www.apacheref.com/ref/mod_rewrite.html ir jaapiesleedz modulis mod_rewrite tad ir jaanoraada rewrite engine uz on un tad jaasaraksta nosaciijumi, kaa tos linkus paarveidot lai apache saprastu Link to comment Share on other sites More sharing options...
Robis Posted February 7, 2004 Report Share Posted February 7, 2004 Taatad, vareetu teikt, ka no php skriptiem tas nav atkariigs? Respektiivi, ja man lapa njem taadus un taadus $_GET mainiigos un veelaak man shii lapa ir jaapaarvieto uz kaadas firmas servera, tad tas ir tikai atkariigs no taa, kaa vinjiem nokonfigureets Apache? Gadiijumaa, ja vinjiem taa nav, vai ir iespeejams uzlikt, kas uz konkreeto saitu attiecas taadi url paarveidoshanas noteikumi? Tad man jaaatstaaj visu kaa ir? Un kaa ir ar sesijas mainiigajiem administraacijas lapai? Tur nekas nemainaas shai sakaraa? Link to comment Share on other sites More sharing options...
hu_ha Posted February 7, 2004 Report Share Posted February 7, 2004 nu tik vienkaarshi gluzhi tas nebuus - tev jaamaina arii linki, kas ir lapaa, piem: <a href="aaa.php?id=1&nr=2">links</a> tev ir jaapaarveido uz kaut ko shaadu <a href="aaa/1/2">links</a> jo spiezhot uz linka tu sho linku ieliec browsera rindaa un tas noziimee, ka apache var atkal nesaparst tavus linkus vai arii gluzhi vienkaarshi linki vairs nebuus smuki Link to comment Share on other sites More sharing options...
hu_ha Posted February 7, 2004 Report Share Posted February 7, 2004 p.s. sheit ir sameeraa vienkaarshiem vaardiem apskaidrota situaacija un aptuveni kaa vajag riikoties un ar ko reekjinaaties http://www.kuro5hin.org/story/2003/7/31/2335/08552 Link to comment Share on other sites More sharing options...
Robis Posted February 7, 2004 Report Share Posted February 7, 2004 zin, lai arii es angliski ljoti labi saprotu, tachu no taa, kas bija rakstiits tajaa linkaa es neko nesapratu..... Lieta ir taada - man saits it kaa strukturaali ir gatavs, es gribu uztaisiit taa, lai vish raada man: Un taatad, kaa es varu paarveerst shaadu url:http://www.something.lv/user/lapa/index.ph...ref=2052&show=2 Sho url, vinjsh ir bishkj saiisinaajis, peec lapa/ naak: index.php?lang=lv&page=110&ref=2052&show=2 piemeeram par: http://www.something.lv/user/lapa/lv/110/2052/2 Cik saprotu, tur ir jaauztaisa .htaccess ! Kaa to var izdariit? Nekad neesmu dariijis... Un veel laikam ir jaataisa tas skripts process.php un jaaiekljauj index.php lapaa? Link to comment Share on other sites More sharing options...
hu_ha Posted February 7, 2004 Report Share Posted February 7, 2004 kas attiecas uz pashu lapu: 0)pashaa lapaa tev visi linki jaapaarveido uz aaa/bbb/ccc stilu kas attiecas uz apaches configu: 1)tad apache config failaa ir jaauzstaada mod_rewrite modulis 2)tad vai nu .htaccess vai tajaa pashaa config failaa jaanoraada: RewriteEngine On 3) un tad noraadi noteikumus, piem: RewriteRule ^/foo.html /bar.html [R,L] dotais piemeers izpildiis bar.html failu ja linkaa paraadiisies foo.html Cik saprotu, tur ir jaauztaisa .htaccess ! Kaa to var izdariit? Nekad neesmu dariijis...panjemam uztaisam vienkaarshu *.txt failu un tajaa ierakstam:RewriteEngine On RewriteRule ^/foo.html /bar.html [R,L] tad sho failu paarsaucam uz .htaccess un noliekam galvenajaa direktorijaa (tur kur index.php fails) ja tu darbojies uz windows, tad visdriizaak ka shaadu failu izveidot tev neljaus, taapeec apache config failaa noraadi, ka .htaccess failu funkcijas pildiis, piem, h.htaccess un tad attieciigi savu jaunizveidoto failu nosauc par h.htaccess Un veel laikam ir jaataisa tas skripts process.php un jaaiekljauj index.php lapaa? nu es nez kas ir tajaa process.php failaa (no kurienes raavi???) nu var taisiit lai tajaa process.php failaa ir funkcija, kas automaatiski paarveido url tavaa lapaa uz smukiem (tipa 0tais punks, ko rakstiiju, tikai automatizeeti), bet nu tad tev jaauztaisa arii tas paarveidoshnas skripts...(vai kaut kaa taa) Link to comment Share on other sites More sharing options...
Robis Posted February 7, 2004 Report Share Posted February 7, 2004 Par to proccess.php es raavu sheit: http://www.sitepoint.com/print/485 Tas pagaidaam ir vissakariigaaka informaacija, ko vareeju atrast par sho teemu... Bet pagaidaam izskataas, ka ir bishkji *****, jo man liekas, ka paarsaukt mainiigos un metodes, peec kaadaam skripti atpaziist $_GET mainiigos es negribeeshu! Bet varbuut tas to neietekmee? Link to comment Share on other sites More sharing options...
Recommended Posts