Qhov tseeb Robots txt rau lub vev xaib html tsim kev ua haujlwm mockups rau kev tshawb nrhiav cav bots, qhia lawv yam lawv tuaj yeem tshawb xyuas. Cov ntaub ntawv no feem ntau hu ua Robot Exclusion Protocol. Thawj qhov bots nrhiav ua ntej nkag mus rau lub vev xaib yog robots.txt. Nws tuaj yeem taw tes rau lossis qhia rau Sitemap tsis txhob kuaj xyuas qee qhov subdomains. Thaum koj xav tshawb fawb xyaw los tshawb nrhiav qhov uas nquag pom, ces robots.txt tsis tas yuav tsum tau. Nws yog ib qho tseem ceeb heev nyob rau hauv cov txheej txheem no uas cov ntaub ntawv yog formatted kom raug thiab tsis index tus neeg siv nplooj ntawv nrog tus neeg siv tus kheej cov ntaub ntawv.
Robot scanning txoj cai
Thaum lub tshuab tshawb nrhiav ntsib cov ntaub ntawv thiab pom qhov txwv URL, nws tsis nkag mus, tab sis nws tuaj yeem ntsuas nws. Qhov no yog vim tias txawm tias cov neeg hlau tsis raug tso cai saib cov ntsiab lus, lawv tuaj yeem nco qab cov backlinks taw rau qhov txwv URL. Vim tias thaiv kev nkag mus rau qhov txuas, URL yuav tshwm sim hauv kev tshawb fawb xyaw, tab sis tsis muaj qhov tawg. Yog ibrau lub tswv yim kev lag luam tuaj, qhov tseeb Robots txt rau bitrix (Bitrix) yog yuav tsum tau, lawv muab qhov chaw pov thawj ntawm qhov kev thov ntawm cov neeg siv los ntawm scanners.
Ntawm qhov tod tes, yog tias cov ntaub ntawv tsis raug kho kom raug, qhov no tuaj yeem ua rau lub xaib tsis tshwm sim hauv cov txiaj ntsig tshawb nrhiav thiab tsis pom. Cov tshuab tshawb nrhiav tsis tuaj yeem hla cov ntaub ntawv no. Tus programmer tuaj yeem saib robots.txt ntawm txhua qhov chaw los ntawm kev mus rau nws lub npe thiab ua raws nws nrog robots.txt, piv txwv li, www.domain.com/robots.txt. Siv cov cuab yeej xws li Unamo's SEO optimization seem, qhov twg koj tuaj yeem nkag mus rau txhua qhov chaw, thiab cov kev pabcuam yuav qhia txog qhov muaj nyob ntawm cov ntaub ntawv.
txwv tsis pub luam tawm:
- Tus neeg siv tau dhau los lossis cov ntsiab lus rhiab.
- Cov duab ntawm lub xaib yuav tsis suav nrog hauv cov duab tshawb nrhiav.
- Lub xaib tseem tsis tau npaj rau qhov demo kom raug ntsuas los ntawm tus neeg hlau.
Nco ntsoov tias cov ntaub ntawv uas tus neeg siv xav tau los ntawm lub tshuab tshawb nrhiav muaj rau txhua tus neeg uas nkag mus rau qhov URL. Tsis txhob siv cov ntaub ntawv no los nkaum cov ntaub ntawv rhiab. Yog tias tus sau muaj 404 (tsis pom) lossis 410 (dhau) yuam kev, lub tshuab tshawb xyuas xyuas lub vev xaib txawm tias muaj robots.txt, qhov twg nws txiav txim siab tias cov ntaub ntawv ploj lawm. Lwm yam yuam kev xws li 500 (Internal Server yuam kev), 403 (Forbidden), lub sij hawm tawm, los yog "tsis muaj" hwm robots.txt cov lus qhia, txawm li cas los bypass yuav ncua mus txog rau thaum cov ntaub ntawv muaj.
Creating a search file
NtauCMS cov kev pab cuam xws li WordPress twb muaj cov ntaub ntawv robots.txt. Ua ntej txhim kho Robots txt WordPress, tus neeg siv yuav tsum paub lawv tus kheej nrog nws cov peev xwm txhawm rau txheeb xyuas seb yuav nkag mus li cas. Yog tias tus programmer tsim cov ntaub ntawv nws tus kheej, nws yuav tsum ua raws li cov hauv qab no:
- Yuav tsum yog tus lej qis.
- Siv UTF-8 encoding.
- Txuag hauv cov ntawv nyeem ua cov ntaub ntawv (.txt).
Thaum tus neeg siv tsis paub yuav muab tso rau qhov twg, lawv hu rau lub vev xaib server software muag khoom kom paub seb yuav nkag mus rau hauv paus ntawm tus sau lossis mus rau Google console thiab rub tawm nws. Nrog rau txoj haujlwm no, Google tuaj yeem tshawb xyuas seb lub bot puas ua haujlwm raug thiab cov npe ntawm cov chaw uas tau raug thaiv los ntawm kev siv cov ntaub ntawv.
Lub hom phiaj tseem ceeb ntawm qhov tseeb Robots txt rau bitrix (Bitrix):
- Legend robots.txt.
- , ntxiv cov lus uas siv los sau ntawv nkaus xwb.
- Cov lus no yuav tsis quav ntsej los ntawm scanners nrog rau txhua tus neeg siv typos.
- Tus neeg siv-tus neeg saib xyuas - qhia tias lub tshuab tshawb nrhiav cov lus qhia rau cov ntaub ntawv tau teev nyob rau.
- Ntxiv lub hnub qub () qhia cov tshuab luam ntawv tias cov lus qhia yog rau txhua tus.
Qhia txog qhov tshwj xeeb bot, piv txwv li, Googlebot, Baiduspider, Applebot. Disallow qhia crawlers uas qhov chaw ntawm lub vev xaib yuav tsum tsis txhob nkag. Nws zoo li qhov no: Tus neeg siv-tus neeg sawv cev:. Lub hnub qub txhais tau tias "tag nrho cov bots". Txawm li cas los xij, koj tuaj yeem qhia cov nplooj ntawv tshwj xeebbots. Txhawm rau ua qhov no, koj yuav tsum paub lub npe ntawm bot rau cov lus pom zoo tau teeb tsa.
Tus neeg hlau raug txt rau Yandex yuav zoo li no:
Yog tias tus bot yuav tsum tsis nkag mus rau qhov chaw, koj tuaj yeem qhia nws, thiab nrhiav cov npe ntawm cov neeg siv khoom, nws raug nquahu kom paub koj tus kheej nrog lub peev xwm online ntawm useragentstring.com.
Page optimization
Ob kab hauv qab no suav tias yog cov ntaub ntawv robots.txt ua tiav, thiab ib daim ntawv robots tuaj yeem muaj ntau kab ntawm cov neeg siv cov neeg sawv cev thiab cov lus qhia uas lov tes taw lossis ua kom nkag tau. Lub hom phiaj tseem ceeb ntawm qhov tseeb Robots txt:
- Tus neeg siv: [tus neeg siv lub npe].
- Disallow: .
Nyob rau hauv cov ntaub ntawv, txhua qhov thaiv ntawm cov lus qhia tau tshwm sim raws li kev sib cais, sib cais los ntawm kab. Hauv cov ntaub ntawv ib sab ntawm tus neeg siv cov npe neeg siv, txhua txoj cai raug siv rau ib qho tshwj xeeb ntawm cov kab sib cais. Yog tias cov ntaub ntawv muaj ntau txoj cai, tus neeg hlau tsuas yog xav txog cov lus qhia tshwj xeeb tshaj plaws.
Technical syntax
Nws tuaj yeem xav tias yog "lus" ntawm cov ntaub ntawv robots.txt. Muaj tsib nqe lus uas tuaj yeem muaj nyob hauv hom ntawv no, cov ntsiab lus tseem ceeb suav nrog:
- Tus neeg siv-tus neeg saib xyuas - Web crawler nrog cov lus qhia nkag, feem ntau yog lub tshuab tshawb nrhiav.
- Disallow yog cov lus txib siv los qhia tus neeg siv tus neeg sawv cev kom hla(omission) ntawm ib qho URL tshwj xeeb. Tsuas muaj ib qho kev txwv rau txhua tus xwb.
- Allow. Rau Googlebot uas nkag mus, txawm tias tus neeg siv nplooj ntawv raug tsis lees paub.
- Crawl-delay - qhia tias pes tsawg vib nas this tus crawler yuav xav tau ua ntej nkag. Thaum tus bot tsis lees paub nws, qhov ceev tau teeb tsa hauv Google console.
- Sitemap - Siv los txheeb xyuas txhua daim ntawv qhia XML cuam tshuam nrog URL.
Pattern Matches
Thaum nws los txog rau qhov thaiv qhov URLs lossis tso cai rau Robots txt siv tau, kev ua haujlwm tuaj yeem nyuaj heev vim lawv tso cai rau koj siv cov qauv sib piv los npog ntau qhov URL tsis tau. Google thiab Bing ob leeg siv ob lub cim uas txheeb xyuas nplooj ntawv lossis subfolders uas SEO xav kom tshem tawm. Ob lub cim yog lub hnub qub () thiab tus lej kos npe ($), qhov twg:yog daim ntawv cim npe uas sawv cev rau ib ntu ntawm cov cim. $ - phim qhov kawg ntawm qhov URL.
Google muaj cov npe loj ntawm cov qauv ua tau zoo uas piav qhia rau tus neeg siv yuav teeb tsa Robots txt cov ntaub ntawv li cas. Qee qhov kev siv feem ntau suav nrog:
- Tiv thaiv kom tsis txhob muaj cov ntsiab lus sib npaug ntawm qhov tshwm sim hauv kev tshawb fawb.
- Kua txhua ntu ntawm lub vev xaib ntiag tug.
- Txuag nplooj ntawv sab hauv ntawm cov txiaj ntsig tshawb fawb raws li cov lus qhib.
- Qhia qhov chaw.
- Tiv thaiv kev tshawb fawb cav los ntawm kev txheeb xyuas qee yamfiles.
- Qhia txog kev nkag mus qeeb kom tsis txhob rov xa rov qab thaum luam theej ntau qhov chaw tib lub sijhawm.
Tshuaj xyuas qhov muaj cov ntaub ntawv neeg hlau
Yog tias tsis muaj thaj chaw ntawm qhov chaw uas yuav tsum tau nkag mus, ces robots.txt tsis xav tau txhua. Yog tias tus neeg siv tsis paub meej tias cov ntaub ntawv no muaj, nws yuav tsum nkag mus rau hauv paus sau npe thiab ntaus nws thaum kawg ntawm URL, ib yam dab tsi zoo li no: moz.com/robots.txt. Ntau tus neeg tshawb nrhiav bots tsis quav ntsej cov ntaub ntawv no. Txawm li cas los xij, raws li txoj cai, cov crawlers no tsis koom nrog kev tshawb fawb muaj npe nrov. Lawv yog hom spammers, mail aggregators thiab lwm yam automated bots uas muaj nyob rau hauv ntau nyob rau hauv Internet.
Nws yog ib qho tseem ceeb heev uas yuav tsum nco ntsoov tias kev siv tus qauv cais tawm tsis yog kev ntsuas kev nyab xeeb zoo. Qhov tseeb, qee qhov bots tuaj yeem pib nrog nplooj ntawv uas tus neeg siv teeb tsa lawv rau hom scan. Muaj ntau qhov chaw uas nkag mus rau hauv cov ntaub ntawv tshwj xeeb. Ua ntej koj qhia tus neeg hlau uas nplooj ntawv uas nws yuav tsum tsis txhob ua haujlwm, koj yuav tsum qhia meej tias tus neeg hlau twg los tham nrog. Feem ntau, tus neeg siv yuav siv cov lus tshaj tawm yooj yim uas txhais tau tias "tag nrho cov bots".
YSEO optimization
Ua ntej optimizing, tus neeg siv yuav tsum xyuas kom meej tias nws tsis thaiv cov ntsiab lus lossis ntu ntawm qhov chaw uas yuav tsum tau hla. Txuas mus rau nplooj ntawv thaiv los ntawm qhov tseeb Robots txt yuav tsis raug hwm. Qhov no txhais tau tias:
- Yog tias lawv tsis txuas rau lwm nplooj ntawv muaj rau kev tshawb fawb xyaw xws li. nplooj ntawv,tsis thaiv los ntawm robots.txt lossis meta neeg hlau, thiab cov peev txheej cuam tshuam yuav tsis raug nkag thiab yog li tsis tuaj yeem txheeb xyuas.
- Tsis muaj qhov txuas tuaj yeem dhau los ntawm nplooj ntawv thaiv mus rau qhov chaw txuas. Yog tias muaj nplooj ntawv zoo li no, nws yog qhov zoo dua los siv cov txheej txheem thaiv kev sib txawv dua li robots.txt.
Vim tias lwm nplooj ntawv tuaj yeem txuas ncaj qha mus rau nplooj ntawv uas muaj cov ntaub ntawv ntiag tug thiab koj xav thaiv nplooj ntawv no los ntawm kev tshawb nrhiav, siv lwm txoj hauv kev, xws li kev tiv thaiv tus password lossis noindex meta cov ntaub ntawv. Qee lub tshuab tshawb nrhiav muaj ntau tus neeg siv tus neeg sawv cev. Piv txwv li, Google siv Googlebot rau kev tshawb nrhiav organic thiab Googlebot-Image rau kev tshawb nrhiav duab.
Feem ntau cov neeg siv los ntawm tib lub tshuab tshawb nrhiav ua raws tib txoj cai, yog li tsis tas yuav tsum tau qhia cov lus qhia rau txhua tus ntawm ntau tus neeg nkag, tab sis muaj peev xwm ua tau zoo tuaj yeem kho qhov nkag ntawm cov ntsiab lus ntawm qhov chaw. Lub tshuab tshawb nrhiav caches cov ntsiab lus ntawm cov ntaub ntawv, thiab feem ntau hloov kho cov ntsiab lus cached tsawg kawg ib hnub ib zaug. Yog tias tus neeg siv hloov pauv cov ntaub ntawv thiab xav hloov kho sai dua li niaj zaus, lawv tuaj yeem xa cov robots.txt URL rau Google.
Search engines
Kom nkag siab tias Robots txt ua haujlwm li cas kom raug, koj yuav tsum paub txog lub peev xwm ntawm kev tshawb fawb xyaw. Nyob rau hauv luv luv, lawv lub peev xwm nyob rau hauv qhov tseeb hais tias lawv xa "scanners", uas yog cov kev pab cuam uasbrowsing hauv Internet rau cov ntaub ntawv. Lawv mam li khaws qee cov ntaub ntawv no rau yav tom ntej xa mus rau tus neeg siv.
Rau ntau tus neeg, Google twb yog Is Taws Nem. Qhov tseeb, lawv yog lawm, vim qhov no yog kab tias nws qhov tseem ceeb tshaj plaws invention. Thiab txawm hais tias kev tshawb fawb xyaw tau hloov ntau heev txij li thaum lawv pib, cov hauv paus ntsiab lus tseem yog tib yam. Crawlers, tseem hu ua "bots" lossis "spider", nrhiav cov nplooj ntawv los ntawm ntau lab lub vev xaib. Cov tshuab tshawb nrhiav muab cov lus qhia rau lawv mus qhov twg, thaum cov chaw ib leeg tuaj yeem sib txuas lus nrog bots thiab qhia lawv cov nplooj ntawv tshwj xeeb uas lawv yuav tsum saib.
Feem ntau, cov tswv ntawm qhov chaw tsis xav kom tshwm sim hauv kev tshawb fawb xyaw: nplooj ntawv admin, backend portals, pawg thiab cim npe, thiab lwm nplooj ntawv cov ntaub ntawv. Cov ntaub ntawv robots.txt kuj tseem siv tau los tiv thaiv kev tshawb fawb cav los ntawm kev txheeb xyuas nplooj ntawv. Hauv luv luv, robots.txt qhia web crawlers yuav ua li cas.
Ban Pages
Nov yog qhov tseem ceeb ntawm cov ntaub ntawv rho tawm neeg hlau. Nrog cov lus tshaj tawm yooj yim, tus neeg siv qhia bot lossis pawg bots kom tsis txhob nkag mus rau qee nplooj ntawv. Cov syntax yog qhov yooj yim, piv txwv li, tsis kam nkag mus rau txhua yam hauv lub vev xaib "admin" directory, sau: Disallow: /admin. Cov kab no yuav tiv thaiv bots los ntawm kev nkag koj site.com/admin, yoursite.com/admin/login, yoursite.com/admin/files/secret.html, thiab lwm yam nyob rau hauv cov npe ntawm admin.
Txhawm rau txwv tsis pub ib nplooj ntawv, tsuas yog qhia nws hauv kab tsis pom zoo: Disallow: /public/exception.html. Tam sim no cov nplooj ntawv "exception".yuav tsis migrate, tab sis txhua yam nyob rau hauv "public" folder yuav.
Txhawm rau suav nrog ntau nplooj ntawv, tsuas sau lawv:
Cov plaub kab ntawm qhov raug Robots txt rau symphony yuav siv tau rau txhua tus neeg siv tus neeg sawv cev teev nyob rau saum toj ntawm nturobots.txt rau
Sitemap:
Lwm cov lus txib:nyob - tsis txhob tso cai rau lub vev xaib nkag mus rau qhov ntsuas cpresources / lossis tus neeg muab khoom /.
Tus Neeg Siv Khoom:Disallow: /cpresources/.
Deny: / tus neeg muag khoom / Disallow: /.env.
Setting standard
Tus neeg siv tuaj yeem qhia cov nplooj ntawv tshwj xeeb rau cov bots sib txawv los ntawm kev sib txuas ob lub ntsiab lus dhau los, qhov no yog qhov nws zoo li. Ib qho piv txwv ntawm qhov tseeb Robots txt rau txhua qhov kev tshawb fawb xyaw tau nthuav tawm hauv qab no.
Cov ntu "admin" thiab "private" yuav pom tsis tau rau Google thiab Bing, tab sis Google tseem yuav pom cov npe "ceev" thaum Bing yuav tsis. Koj tuaj yeem teev cov kev cai dav dav rau txhua tus bots siv tus neeg siv lub hnub qub, thiab tom qab ntawd muab cov lus qhia tshwj xeeb rau cov bots hauv ntu hauv qab no. Nrog rau kev paub saum toj no, tus neeg siv tuaj yeem sau ib qho piv txwv ntawm qhov tseeb Robots txt rau txhua qhov kev tshawb fawb xyaw. Tsuas yog tua koj cov ntawv nyeem uas koj nyiam thiab qhia rau cov bots lawv tsis txais tos hauv qee qhov chaw ntawm lub xaib.
Lub tswv yim txhawm rau txhim kho server kev ua haujlwm
SublimeText yogntau yam ntawv editor thiab tus qauv kub rau ntau tus programmers. Nws cov lus qhia programming yog raws li kev coding zoo, ntxiv rau. cov neeg siv txaus siab rau lub xub ntiag ntawm shortcuts nyob rau hauv qhov kev pab cuam. Yog tias tus neeg siv xav pom ib qho piv txwv ntawm cov ntaub ntawv robots.txt, lawv yuav tsum mus rau txhua qhov chaw thiab ntxiv "/robots.txt" mus rau qhov kawg. Nov yog ib feem ntawm cov ntaub ntawv robots.txt GiantBicycles.
Qhov kev pab cuam muab kev tsim cov nplooj ntawv uas cov neeg siv tsis xav qhia hauv kev tshawb fawb xyaw. Thiab tseem muaj ob peb yam tshwj xeeb uas tsawg tus neeg paub txog. Piv txwv li, thaum cov ntaub ntawv robots.txt qhia bots qhov twg tsis mus, cov ntaub ntawv sitemap ua qhov sib txawv thiab pab lawv nrhiav qhov lawv tab tom nrhiav, thiab thaum tshawb fawb xyaw tej zaum twb paub qhov chaw sitemap nyob, nws tsis tau txais. hauv txoj kev.
Muaj ob hom ntaub ntawv: nplooj ntawv HTML lossis XML cov ntaub ntawv. Ib nplooj ntawv HTML yog ib qho uas qhia cov neeg tuaj saib tag nrho cov nplooj ntawv muaj nyob hauv lub vev xaib. Hauv nws tus kheej robots.txt, nws zoo li qhov no: Sitemap://www.makeuseof.com/sitemap_index.xml. Yog tias lub vev xaib tsis tau txheeb xyuas los ntawm kev tshawb fawb xyaw, txawm hais tias nws tau nkag mus ntau zaus los ntawm lub vev xaib neeg hlau, koj yuav tsum xyuas kom meej tias cov ntaub ntawv tam sim no thiab nws cov kev tso cai raug teeb tsa kom raug.
Los ntawm lub neej ntawd, qhov no yuav tshwm sim rau txhua qhov kev teeb tsa SeoToaster, tab sis yog tias tsim nyog, koj tuaj yeem rov pib dua li qhov no: Cov ntaub ntawv robots.txt - 644. Nyob ntawm PHP server, yog tias qhov no tsis ua haujlwm rau tus neeg siv, nws pom zoo kom sim ua cov hauv qab no: Cov ntaub ntawv robots.txt - 666.
Setting the scan delay
Txoj kev hla dhau ncua kev qhia qhia meejkev tshawb fawb cav ntau npaum li cas lawv tuaj yeem ntsuas ib nplooj ntawv ntawm lub xaib. Nws yog ntsuas hauv vib nas this, txawm hais tias qee lub tshuab tshawb nrhiav txhais nws txawv me ntsis. Qee tus neeg pom kev nkag mus qeeb 5 thaum lawv hais kom tos tsib vib nas this tom qab txhua qhov scan kom pib qhov txuas ntxiv.
Lwm tus txhais qhov no raws li kev qhia tsuas yog luam ib nplooj ntawv txhua tsib vib nas this. Tus neeg hlau tsis tuaj yeem luam theej duab nrawm dua kom txuag server bandwidth. Yog tias tus neeg rau zaub mov xav tau kom phim cov tsheb khiav, nws tuaj yeem teem caij hla dhau. Feem ntau, feem ntau, cov neeg siv tsis tas yuav txhawj txog qhov no. Qhov no yog li cas qhov kev ncua sij hawm ntawm yim vib nas this tau teeb tsa - Crawl-delay: 8.
Tab sis tsis yog txhua lub tshuab tshawb nrhiav yuav ua raws li cov lus qhia no, yog li thaum tsis tso cai rau nplooj ntawv, koj tuaj yeem teeb tsa sib txawv nkag qeeb rau qee qhov kev tshawb fawb xyaw. Tom qab tag nrho cov lus qhia hauv cov ntaub ntawv raug teeb tsa, koj tuaj yeem xa nws mus rau qhov chaw, ua ntej kom paub tseeb tias nws yog cov ntawv nyeem yooj yim thiab muaj lub npe robots.txt thiab tuaj yeem pom ntawm yoursite.com/robots.txt.
Best WordPress bot
Muaj qee cov ntaub ntawv thiab cov npe ntawm lub vev xaib WordPress uas yuav tsum tau kaw txhua zaus. Cov npe uas cov neeg siv yuav tsum tsis tso cai yog cgi-bin directory thiab tus qauv WP directory. Qee cov servers tsis tso cai nkag mus rau cgi-bin directory, tab sis cov neeg siv yuav tsum suav nrog nws hauv cov lus qhia tsis pom zoo ua ntej teeb tsa Robots txt WordPress
Standard WordPress directories,uas yuav tsum thaiv yog wp-admin, wp-cov ntsiab lus, wp- suav nrog. Cov ntawv teev npe no tsis muaj cov ntaub ntawv uas yog thawj qhov tseem ceeb rau kev tshawb fawb xyaw, tab sis muaj qhov tshwj xeeb, piv txwv li muaj cov npe hu ua uploads hauv wp-cov ntsiab lus directory. Cov subdirectory no yuav tsum tau tso cai rau hauv cov ntaub ntawv robot.txt vim nws suav nrog txhua yam uas tau thauj khoom siv WP media upload feature. WordPress siv cov cim lossis pawg los tsim cov ntsiab lus.
Yog siv pawg, tom qab ntawd txhawm rau ua kom raug Robots txt rau Wordpress, raws li tau teev tseg los ntawm cov chaw tsim khoom lag luam, nws yog qhov tsim nyog los thaiv cov ntawv sau los ntawm kev tshawb nrhiav. Ua ntej, lawv tshawb xyuas cov ntaub ntawv los ntawm kev mus rau "Administration" panel> "Settings" > "Permalink".
Nyob zoo, lub hauv paus yog tag, yog lub teb yog khoob: Disallow: / tag /. Yog tias ib qeb siv, ces koj yuav tsum lov tes taw qeb hauv cov ntaub ntawv robot.txt: Disallow: /category/. Los ntawm lub neej ntawd, lub hauv paus yog tag, yog lub teb yog khoob: Disallow: / tag /. Yog tias ib qeb siv, ces koj yuav tsum lov tes taw cov qeb hauv cov ntaub ntawv robot.txt: Disallow: / qeb /.
Cov ntaub ntawv siv feem ntau rau kev nthuav tawm cov ntsiab lus, lawv yuav raug thaiv los ntawm cov ntaub ntawv Robots txt tseeb rau Wordpress:
Joomla kev teeb tsa yooj yim
Thaum tus neeg siv tau teeb tsa Joomla, koj yuav tsum tau saib qhov tseeb Joomla Robots txt teeb tsa hauv ntiaj teb teeb tsa, uas nyob hauv pawg tswj hwm. Qee qhov chaw ntawm no tseem ceeb heev rau SEO. Ua ntej nrhiav lub npe ntawm lub xaib thiab xyuas kom meej tiaslub npe luv ntawm lub xaib yog siv. Tom qab ntawd lawv pom ib pab pawg teeb tsa rau sab xis ntawm tib lub vijtsam, uas yog hu ua SEO nqis. Ib qho uas yuav tau hloov pauv yog qhov thib ob: siv qhov rov sau URL.
Qhov no suab nyuaj, tab sis nws pib pab Joomla tsim cov URLs huv. Feem ntau pom yog tias koj tshem tawm cov kab index.php los ntawm URLs. Yog tias koj hloov nws tom qab, URLs yuav hloov thiab Google yuav tsis nyiam nws. Txawm li cas los xij, thaum hloov qhov teeb tsa no, ob peb kauj ruam yuav tsum tau ua tib lub sijhawm los tsim kom raug neeg hlau txt rau Joomla:
- Nrhiav htaccess.txt cov ntaub ntawv hauv Joomla root folder.
- Kim nws li.htaccess (tsis muaj txuas ntxiv).
- Nrog lub npe chaw nyob hauv nplooj ntawv npe.
- Nrhiav metadata chaw nyob hauv qab ntawm lub ntiaj teb kev teeb tsa npo.
Robot hauv huab MODX
Yav dhau los, MODX Huab tau muab cov neeg siv lub peev xwm los tswj tus cwj pwm uas tso cai rau cov ntaub ntawv robots.txt ua haujlwm raws li kev hloov pauv hauv dashboard. Thaum qhov no muaj txiaj ntsig zoo, nws tuaj yeem tso cai tso cai indexing ntawm staging / dev sites los ntawm toggling ib qho kev xaiv hauv Dashboard. Ib yam li ntawd, nws yooj yim rau lov tes taw indexing ntawm qhov chaw tsim khoom.
Hnub no cov kev pabcuam xav tias muaj cov ntaub ntawv robots.txt hauv cov ntaub ntawv kaw lus nrog qhov tshwj xeeb hauv qab no: txhua qhov chaw uas xaus nrog modxcloud.com yuav ua haujlwm tsis pom zoo: / cov lus qhia rau txhua tus neeg siv tus neeg sawv cev, tsis hais txog qhov muaj nyob. los yog tsis muaj ntaub ntawv. Cov chaw tsim khoom uas tau txais cov neeg tuaj saib tiag tiag yuav tsum siv lawv tus kheej sau yog tias tus neeg siv xav ntsuas lawv qhov chaw.
Qee lub koom haum siv qhov tseeb Robots txt rau modx los khiav ntau lub vev xaib los ntawm ib qho kev teeb tsa siv cov ntsiab lus. Ib rooj plaub uas qhov no tuaj yeem siv tau yuav yog qhov chaw lag luam pej xeem ua ke nrog nplooj ntawv micro sites thiab tejzaum nws tsis yog pej xeem intranet.
Kev lig kev cai qhov no tau nyuaj ua rau ntau tus neeg siv kev teeb tsa thaum lawv sib koom tib lub hauv paus hauv paus. Nrog MODX Huab, qhov no yooj yim. Tsuas yog upload cov ntaub ntawv ntxiv rau lub vev xaib hu ua robots-intranet.example.com.txt nrog cov ntsiab lus hauv qab no thiab nws yuav thaiv kev ntsuas nrog cov neeg hlau ua haujlwm zoo thiab tag nrho lwm lub npe hostname poob rov qab rau cov ntaub ntawv txheem tshwj tsis yog muaj lwm cov npe tshwj xeeb.
Robots.txt yog cov ntaub ntawv tseem ceeb uas pab tus neeg siv txuas mus rau qhov chaw hauv Google, cov kev tshawb fawb loj thiab lwm lub vev xaib. Nyob rau ntawm lub hauv paus ntawm lub web server, cov ntaub ntawv qhia cov web robots kom nkag mus rau qhov chaw, teeb tsa cov folders uas nws yuav tsum tau lossis yuav tsum tsis txhob ntsuas, siv cov lus qhia hu ua Bot Exclusion Protocol. Ib qho piv txwv ntawm qhov tseeb Robots txt rau txhua qhov kev tshawb fawb xyaw obots.txt tshwj xeeb yog yooj yim ua nrog SeoToaster. Cov ntawv qhia tshwj xeeb tau tsim rau nws hauv lub vaj huam sib luag, yog li tus bot yuav tsis tas yuav ua haujlwm dhau los kom nkag tau.