Dab Tsi Yog Qhov Chaw Ncua

Cov txheej txheem:

Dab Tsi Yog Qhov Chaw Ncua
Dab Tsi Yog Qhov Chaw Ncua

Video: Dab Tsi Yog Qhov Chaw Ncua

Video: Dab Tsi Yog Qhov Chaw Ncua
Video: Pov Yaj - Nim Tseg Ncua Koj Lub Suab Luag - Nkauj Tshiab ( New Song 2021 ) 2024, Kaum ib hlis
Anonim

Coob tus webmasters tshiab ntsib ntau yam kev nyuaj los qhia txog cov ntsiab lus ntawm cov lus tau ntawm Cov Txheej Txheem Thoob Ntiaj Teb. Nyob rau tib lub sijhawm, nws yog qhov tseem ceeb tsis tsuas yog nkag siab txog lub ntsiab ntawm cov lus, tab sis tseem yuav tsum paub lub peculiarities ntawm lawv txoj kev siv, txhais thiab cov ntsiab cai ntawm kev ua haujlwm ntawm cov khoom uas cov ntsiab lus no piav qhia. Tom qab ntawd nws yuav yooj yim thiab qab ntxiag rau "koom nrog" pab neeg ntawm cov webmasters muaj kev paub.

Dab tsi yog qhov chaw ncua
Dab tsi yog qhov chaw ncua

Hauv cov ntsiab lus yooj yim, tus sau yog qhov tseem ceeb ntawm lub xaib ntawm lub xaib. Piv txwv li, Yandex muaj tus sau - yandex.ru. Thaum koj sau qhov chaw nyob no rau hauv qhov chaw nyob ntawm koj tus browser, tus neeg rau zaub mov ncaj qha koj rau lub xaib sib nug rau tus sau no. Nws tuaj yeem muab piv rau kev caij tsheb tavxij: koj muab qhov chaw nyob thiab lawv coj koj mus rau hauv lub tsev qhia. Tus sau yog ib feem ntawm cov generic URL.

URL (Uniform Resource Locator) yog lub npe technical rau tag nrho lub chaw nyob. Hauv Lavxias, lo lus "url" feem ntau siv.

Tus subdomain, nyob rau hauv lem, yog tus me nyuam sau nyob rau hauv kev sib raug zoo mus rau lub ntsiab. Piv txwv li, qhov chaw nyob ntawm Yandex. Maps cov kev pabcuam muaj qhov chaw nyob maps.yandex.ru, qhov twg daim duab qhia yog subdomain (theem-theem sau npe), yandex yog tus thawj lub ntsiab (theem ob-theem sau npe), thiab ru yog thaj chaw sau npe. Qhov taw qhia (thawj-theem sau npe). Nws yuav zoo li nyuaj, tab sis qhov tseeb, tag nrho cov kab ke no muaj qhov ncaj ncees ntawm qhov xwm txheej.

Vim li cas thiaj yuav tsum muaj subdomains?

Is Taws Nem yog cov ntaub ntawv ntau kawg, uas yog vim li cas thiaj li sau cov qauv tsim kho uas ua rau nws yooj yim dua thiab nrawm dua cov ntaub ntawv no. Tus sau thaj chaw tuaj yeem qhia ob qho tag nrho cov khoom ntiag tug ntawm lub xaib rau ib lub tebchaws tshwj xeeb (ru, ua, los ntawm, kz), thiab qhov xwm ntawm tus xaib no - kev ua lag luam (com), network (net), tsis yog lag luam (org) thiab a tus naj npawb ntawm lwm tus neeg.

Yav dhau los,.net sau tsuas yog siv los ntawm cov muab kev pabcuam hauv network thiab hosters. Hnub no tus sau no tuaj yeem siv los ntawm txhua tus.

Nyob rau tib lub sijhawm, cov chaw loj, uas muaj ntau txhiab thiab ntau pua txhiab nplooj, sim qauv lawv nyob rau hauv kev siv rau cov neeg siv khoom, tso cov ntu ntawm cov xaib ntawm cov chaw nyias. Qhov no yooj yim: nws yooj yim rau tus neeg siv los nco ntsoov thiab sau qhov chaw nyob zoo li maps.yandex.ru tshaj yandex.ru/services/maps. Nws tseem tso cai rau koj kom tusyees faib cov load ntawm cov servers uas pabcuam rau cov chaw zoo li no.

Los ntawm txoj kev, tag nrho cov chaw nyob ntawm ib tus xaib tsis yog ntawm ib tus tswv cuab - txawm tias nws zoo li qhov yooj yim, nws yog tag nrho "tus tsim" ntawm cov khoom, txhua tus uas ua si nws tus kheej.

Parse lub chaw nyob "rau hauv lwg me me"

Cia peb siv qhov tsis paub qhov chaw ntawm lub theoretical site ua piv txwv thiab xav txog dab tsi nws muaj. Thaum koj nkag siab qhov kev teeb tsa ntawm ib qho chaw nyob, nws yuav tsis nyuaj rau koj los thov nws rau lwm qhov chaw nyob.

subdomain.site.com/pages/information.php?id=12345&type=abcde#paragraphhttps:// - qhov chaw nyob ntawm no qhia qhov raws tu qauv los ntawm cov ntaub ntawv xa mus los ntawm lub xaib rau koj lub khoos phis tawm. Tsis tas yuav mus rau hauv cov ntsiab lus technical, peb nco ntsoov tias feem ntau cov ntaub ntawv hauv Is Taws Nem tau xa los ntawm HTTP - Hypertext Transfer Protocol.

subdomain yog subdomain ntawm qhov chaw.

.site yog ncaj qha rau qhov chaw nyob ntawm lub ntsiab tus sau ntawm lub xaib.

.com - chaw ua lag luam.

/ pages / - subdirectory rau ntawm lub xaib. Piv txwv, yog tias ib lub vev xaib tshaj tawm cov lus ntawm cov ncauj lus sib txawv, tom qab ntawd txhua cov ncauj lus tuaj yeem muab khaws cia rau hauv nws cov ntawv qhia me.

information.php - ncaj qha nplooj ntawv uas muaj cov ntaub ntawv uas cov neeg siv xav tau.

? id = 12345 & hom = abcde yog thiaj li hu ua chaw nyob tsis raug. Lawv muab cov nplooj ntawv nrog cov ntaub ntawv tshwj xeeb los tso ua ke - piv txwv, cov lus nyob rau hauv uas nws yuav tsum tau ua kom pom, lub npe ntawm cov neeg siv, lossis lwm yam. Hauv qhov ua piv txwv no, daim id parameter dhau mus rau nplooj ntawv tus nqi 12345, thiab hom parameter dhau tus nqi abcde.

#paragraph yog qhov thiaj li hu ua thauj tog rau nkoj, uas qhia tau hais tias qhov twg ntawm nplooj ntawv nws tus kheej yuav tsum cia li tshawb xyuas qhov chaw. Piv txwv li, yog hais tias nplooj ntawv loj thiab muaj ntau lub hauv paus (xws li hauv Wikipedia), tom qab ntawd cov thauj tog rau nkoj yuav coj tus neeg siv mus rau kab ntawv uas xav tau.

Qhov no yog li cas xws li cov kev paub thiab tsis tshua pom qhov chaw nyob ntawm txhua nplooj ntawv hauv Is Taws Nem.

Pom zoo: