Yuav Xa Mus Rau Lwm Qhov Chaw Li Cas

Cov txheej txheem:

Yuav Xa Mus Rau Lwm Qhov Chaw Li Cas
Yuav Xa Mus Rau Lwm Qhov Chaw Li Cas

Video: Yuav Xa Mus Rau Lwm Qhov Chaw Li Cas

Video: Yuav Xa Mus Rau Lwm Qhov Chaw Li Cas
Video: Maiv Xyooj ~ "Lub Kua Muag Tu Moo" with Lyrics (Official Music Video) 2024, Hlis ntuj nqeg
Anonim

Txhawm rau pauv tus qhua rau lwm qhov peev nyiaj hauv Is Taws Nem, koj tuaj yeem siv lub peev xwm hauv built ntawm Arache web server. Thaum thov cov nplooj ntawv ntawm koj lub xaib, cov software software ua ntej saib hauv daim nplaub tshev ntawm cov nplooj ntawv no rau cov haujlwm pabcuam npe hu ua ".htaccess". Yog tias nws tshwm sim, cov neeg rau zaub mov yuav ua raws cov lus sau cia sau rau nws. Koj tuaj yeem muab tso rau hauv cov ntaub ntawv no thiab rov ua haujlwm ob leeg hauv tib lub vev xaib, thiab mus rau ib qho chaw nyob sab nraud.

Yuav xa mus rau lwm qhov chaw li cas
Yuav xa mus rau lwm qhov chaw li cas

Cov Lus Qhia

Kauj ruam 1

Yog tias koj xav tau hloov pauv txhua tus qhua xav thov txhua nplooj ntawv ntawm koj lub xaib, tom qab ntawd hauv htaccess koj yuav tsum siv cov ntawv nkag mus hauv qab no: Redirect / ntawm lwm lub xaib.

Kauj ruam 2

Koj tsuas tuaj yeem xa mus rau lwm lub vev xaib cov uas thov nplooj ntawv los ntawm ib tus nplaub tshev tshwj xeeb ntawm koj lub xaib. Piv txwv li, rau lub nplaub tshev npe hu ua goOut, koj yuav tsum hloov qhov kev qhia saum toj no los nyeem: Redirect goOut /

Kauj ruam 3

Nws yog peev xwm xa mus rau lwm qhov chaw tsuas yog cov neeg qhua uas xav tau cov ntaub ntawv ntawm qee yam. Txhawm rau ua qhov no, koj yuav tsum siv lwm cov lus qhia - RedirectMatch. Nws txawv ntawm Redirect kev qhia nyob rau hauv uas nws siv cov lus qhia tsis tu ncua (regexp) piv rau qhov kev thov thiab cov xwm txheej sau hauv htaccess. Piv txwv li: RedirectMatch (. *). Html $

Kauj ruam 4

Txhawm rau muab cov txheej txheem rov qab rau hauv qhov kev xyaum no, qhib cov phau ntawv yooj yim (Notepad) thiab tsim cov ntawv sau hauv nws. Kos cov teeb meem tsim nyog raws li cov cai tau muab thiab sau nws sau cia hauv cov ntaub ntawv no. Tom qab ntawv khaws cia li ".htaccess" thiab upload rau koj lub xaib cov hauv paus ntsiab lus. Qhov no ua tiav cov txheej txheem.

Pom zoo: