Yuav Ua Li Cas Los Ua Peb-theem Sau Npe

Cov txheej txheem:

Yuav Ua Li Cas Los Ua Peb-theem Sau Npe
Yuav Ua Li Cas Los Ua Peb-theem Sau Npe

Video: Yuav Ua Li Cas Los Ua Peb-theem Sau Npe

Video: Yuav Ua Li Cas Los Ua Peb-theem Sau Npe
Video: “Yuav Ua Li Cas Zoo Siab Uas Vajtswv Tus Uas Muaj Hwj Chim Loj Kawg Nkaus Tau Los lawm!” 2024, Kaum ib hlis
Anonim

Thib peb-theem sau (subdomain) yog nyob rau ntawm theem ob-theem. Raws li txoj cai, nws tau rau npe dawb, piv txwv li, thaum sau npe hauv lub vev xaib ntawm lub tuam txhab uas muab cov tswv yim pub dawb.

Yuav ua li cas los ua peb-theem sau npe
Yuav ua li cas los ua peb-theem sau npe

Nws yog qhov tsim nyog

  • - nyob ruaj nrees nyob hauv lub computer / laptop / netbook
  • - Is taws nem sib txuas
  • - Tej qhov browser

Cov Lus Qhia

Kauj ruam 1

Qhov yooj yim ntawm kev sau npe tus thib peb-theem sau npe yog los tsim lub vev xaib ntawm kev sib tham pub dawb, thaum koj yuav muaj sijhawm los sau npe rau subdomain ntawm ib tus thib ob-theem sau npe rau cov npe ntawm daim ntawv subdomain.domain.ru. Koj tuaj yeem xaiv tus thib peb-theem lub npe sau uas zoo tshaj plaws rau cov ntsiab lus ntawm koj lub xaib. Qhov kev xaiv no muaj ib qho tsis txaus ntseeg - yog tias koj npaj siab yuav txhawb koj lub xaib hauv Is Taws Nem yav tom ntej thiab sau npe rau nws nyob rau ntau lub sijhawm thiab qib ntsuas, tom qab ntawd npaj rau qhov tseeb tias qee qhov kev ntaus nqi thiab cov koom ua ke tsis kam txais cov chaw nyob ntawm qib peb-theem dawb. thawj.

Kauj ruam 2

Tsis tas li, yog tias koj twb muaj koj tus kheej thib ob-theem sau npe thiab koj lub tsev pheeb suab hauv txoj kev npaj nyiaj se tau tso cai rau koj los tsim tus lej qee ntawm cov subdomains ntawm nws, tom qab ntawd koj tuaj yeem mus rau koj tus kheej tus account thiab tawm mus rau ib daim ntawv thov kev tsim cov theem peb theem, qhia nws lub npe xav tau. Hauv ob peb teev, tus sau yuav npaj txhij ua haujlwm thiab koj tsuas yog yuav tsum sau npe lossis tshawb xyuas DNS server teeb tsa rau lub sijhawm no thiab sau nws cov ntaub ntawv.

Kauj ruam 3

Yog tias koj txoj kev npaj se tsis muab kev tsim dawb ntawm cov theem thib peb lossis koj tau tshaj tawm lawv qhov kev txwv lawm, thiab koj tsis xav tsim lawv rau tus nqi ntxiv, tom qab ntawd koj tuaj yeem tsim daim nplaub tshev nrog lub npe sau tshiab ntawm lub hosting zoo li domain.ru/subdomain thiab tom qab ntawd ua cov chaw tsim nyog htaccess ntawv: RewriteEngine OnRewriteCond% {HTTP_HOST} subdomain.domain.ru $ [NC] RewriteCond% {REQUEST_URI}! ^ / subdomain / RewriteRule ^ (. *)% { HTTP_HOST} $ 1RewriteRule ^ (www.)? (. +). Domain.ru (. *) / $ 2% {REQUEST_URI} [L] Yog li, thaum nkag mus rau subdomain.domain.ru chaw nyob, Apache web server yuav cia li tig mus rau cov ntsiab lus ntawm qhov domain.ru/subdomain nplaub tshev

Pom zoo: