Yuav Xa Kev Mus Rau Li Cas

Cov txheej txheem:

Yuav Xa Kev Mus Rau Li Cas
Yuav Xa Kev Mus Rau Li Cas

Video: Yuav Xa Kev Mus Rau Li Cas

Video: Yuav Xa Kev Mus Rau Li Cas
Video: [MV] Paj Yi Lauj 罗娜依 - Kuv Yuav Xa Koj Mus 2024, Kaum ib hlis
Anonim

Txoj kev yooj yim tshaj plaws rau kev thauj mus los yog siv cov peev xwm hauv Apache web server, i.e. cia li thov thiab tswj kev teeb tsa neeg rau zaub mov nrog cov ntawv htaccess. Koj yuav tsum tso cov kev coj ua hauv nws kom cov software xa rov qab cov neeg qhua rau qhov chaw nyob hauv Internet uas teev hauv cov ntawv.

Yuav xa kev mus rau li cas
Yuav xa kev mus rau li cas

Cov Lus Qhia

Kauj ruam 1

Qhib cov ntawv nyeem kab lus muaj rau koj, xws li Notepad. Nws muaj peev xwm txaus los tsim htaccess cov ntaub ntawv thiab sau nws cov ntsiab lus tsim nyog. Xav tau kev taw qhia tau muab nthuav tawm raws li cov ntawv nyeem ib txwm siv. Lawv tuaj yeem raug kho kom zoo ib yam li cov ntaub ntawv nrog qhov txuas ntxiv txt, html, js, thiab lwm yam.

Kauj ruam 2

Ua cov lus txib tshwj xeeb raws li koj qhov yuav tsum tau hloov kho qhov chaw nyob. Yog tias koj xav tau siv xa tus qhua los ntawm txhua nplooj ntawv ntawm koj lub xaib tshiab mus rau qhov chaw nyob qub, khij qhov Redirect / https://site.ru kab hauv cov ntawv htaccess. Teem chaw Hloov Kev xa mus rau qhov chaw nkag no yog chaw nyob hais rov qab txiav txim. Slash (rau sab nraud luaj li cas) txhais cov lus qhia hauv paus ntawm cov peev txheej, uas yog, qhov kev qhia siv rau txhua lub nplaub tshev ntawm lub vev xaib. Ib qho kev thov rau cov ntaub ntawv peev txheej yuav suav nrog kev hloov kho lub tshuab. Thaum muab cov ntawv zoo sib xws hauv cov ntawv tais ceev tseg nrog lwm cov lus qhia, nws cov lus txib yuav dhau los ua qhov muaj feem rau Apache. Qhov https://site.ru code qhia qhov URL uas cov software yuav tsum xa cov neeg tuaj ncig xyuas cov khoom siv. Hloov nws nrog koj qhov chaw nyob redirect.

Kauj ruam 3

Qhia kom meej lub vev xaib nplaub tshev tsis yog lub hauv paus cag. Hauv qhov no, txoj cai yuav tsuas yog txhawj rau cov qhua uas thov cov ntaub ntawv los ntawm txhua subfolders ntawm phau ntawv teev npe. Piv txwv li, Redirect badGirl / https://site.ru. Nws yog qhov ua tau rau kev hloov pauv mus rau qhov chaw xav tau tsuas yog cov neeg siv uas lub browser xa cov ntaub ntawv thov rau ntawm ib hom yam. Piv txwv li, yog hais tias nplooj ntawv thov muaj php ncua ntxiv, qhov pauv yuav raug txhais tau. Txuag cov lus qhia tsim tawm rau htaccess ntawv thiab xa nws mus rau lub hauv paus chaw ntawm lub xaib.

Pom zoo: