drinkits Posted November 22, 2006 Report Share Posted November 22, 2006 nu vo atkal problēma. Man uz hosta uzlikti 2 domēni: domen.lv www.domen.lv Kas jādara, lai, kad lietotājs ierakstas browserii www.domen.lv, vinsh tiek automaatiski paarvietots uz domen.lv.? VNK ja esmu ielogojies forumaa domen.lv tad nebuushu ielogojies www.domen.lv. Ceru ka sapratāt. Link to comment Share on other sites More sharing options...
Delfins Posted November 22, 2006 Report Share Posted November 22, 2006 1.) liec kūkiju uz *.domen.lv 2.) redirekts, ko tur vēl nesaprast ? Link to comment Share on other sites More sharing options...
eM^ Posted November 22, 2006 Report Share Posted November 22, 2006 nu vispar mosh paruna ar provaideru, vai ieej administracijas paneli( ja tadu tev provaideris ir izsniedzis) un uzliec tam www.domeins.lv ieksh DNS sadaljas taa: Host: www.domeins.lv Record type: CNAME Value: domeins.lv P.S. taa ir uz plesk... Link to comment Share on other sites More sharing options...
Roze Posted November 22, 2006 Report Share Posted November 22, 2006 DNS ierakstam (CNAME) šeit gan nav nekāda sakara, jo tas nekādus redirektus neveiks. Ir vairākas pieejas: 1) domain.lv un www.domain.lv liekam vienu webrootu un nesatraucamies.. Lai lietotājs lieto kuru variantu grib (opcionāli kā jau Delfins teica var likt cookijus arī lai ir aksesojami no *.domain.lv). 2) domain.lv webrootam uztaisam vai nu webservera (apache piem Redirect / direktīva) vai arī ar php <? header('http://www.domain.lv'); ?> redirektu.. Link to comment Share on other sites More sharing options...
eM^ Posted November 22, 2006 Report Share Posted November 22, 2006 Roze-> ir gan. manam domeinam ir loti liela nozime ierakstam CNAME. piemeram uzliekot abc.domeins.lv un uzliekot uz domains.lv vins rakstot browserii - abc.domeins.lv savienos ar domeins.lv :P Link to comment Share on other sites More sharing options...
Roze Posted November 22, 2006 Report Share Posted November 22, 2006 Tu vispār zini kas ir CNAME? Link to comment Share on other sites More sharing options...
eM^ Posted November 22, 2006 Report Share Posted November 22, 2006 nu varbuut nemaz nezinu.. :( apgaismo mani :) Link to comment Share on other sites More sharing options...
Delfins Posted November 22, 2006 Report Share Posted November 22, 2006 Cik var malt vienu un to pašu... GOOGLE http://www.google.lv/search?q=define%3Acname http://www.google.lv/search?q=cookies+multiple+domains http://www.cookiecentral.com/faq/ Link to comment Share on other sites More sharing options...
blackhalt Posted November 23, 2006 Report Share Posted November 23, 2006 Tā apmēram var darīt ar .htaccess, nav mēģināts: # Loose WWW prefix RewriteCond %{HTTP_HOST} !^zzz.lv [NC] RewriteRule ^(.*)$ http://zzz.lv%{REQUEST_URI} [R=301,L] Link to comment Share on other sites More sharing options...
Recommended Posts