WordPress: Cire da Canza Tsarin YYYY/MM/DD Permalink Tsarin tare da Regex da Matsayin Math SEO

Canza YYYY/MM/DD Regex WordPress Rank Math SEO

Sauƙaƙe tsarin URL ɗinku hanya ce mai kyau don haɓaka rukunin yanar gizonku saboda dalilai da yawa. Dogayen URLs suna da wahalar rabawa tare da wasu, ana iya yanke su a cikin editocin rubutu da editocin imel, kuma tsarin manyan fayilolin URL na iya aika sigina mara kyau zuwa injunan bincike akan mahimmancin abun cikin ku.

YYYY/MM/DD Permalink Tsarin

Idan rukunin yanar gizonku yana da URLs guda biyu, wanne ne kuke tsammanin ya ba da labarin mafi mahimmanci?

  • https://martech.zone/2013/08/06/yyyy-mm-dd-regex-redirect OR
  • https://martech.zone/yyyy-mm-dd-regex-redirect

Ofaya daga cikin tsoffin saiti don WordPress shine a sami madaidaicin tsari akan blog wanda ya haɗa da yyyy/mm/dd a cikin URL. Wannan bai dace ba saboda wasu dalilai:

  1. Search Engine Optimization (WANNAN) - Kamar yadda aka tattauna a sama, matsayin shafin yana nuna injunan bincike cewa abun ciki yana da manyan fayiloli 4 daga shafin gida… don haka ba muhimmin abun ciki bane.
  2. Shafin Sakamakon Injin Bincike (SERP) - Kuna iya samun labari mai kayatarwa akan rukunin yanar gizon ku wanda kuka rubuta a bara amma hakan yana da inganci. Koyaya, wasu rukunin yanar gizon suna buga sabbin labaran kwanan nan. Idan kun kalli tsarin kwanan wata wanda ya kasance shekara ɗaya da ta gabata a cikin shafin sakamakon binciken injiniya (SERP), za ku danna tsoffin labarin? Wataƙila ba haka ba ne.

Mataki na farko da za a ɗauka shine sabunta Saituna> Permalinks a cikin WordPress admin kuma kawai sanya permalink ɗin ku /% sunan bayan gida% /

Permalink Saitunan WordPress

Wannan; duk da haka, zai karya duk hanyoyin haɗin yanar gizonku na yanzu akan blog ɗin ku. Bayan samun blog ɗin ku na ɗan lokaci, ba abin jin daɗi bane don ƙara juyawa ga kowane tsoffin labaran ku. Yana da kyau saboda zaku iya amfani da Magana na yau da kullun (Regex) don yin wannan. Magana ta yau da kullun tana neman tsari. A wannan yanayin, furcin mu na yau da kullun shine:

/\d{4}/\d{2}/\d{2}/(.*)

Maganar da ke sama ta rushe kamar haka:

  • /\ d {4} yana neman raguwa da lambobi 4 masu wakiltar shekara
  • /\ d {2} yana neman raguwa da lambobi 4 masu wakiltar watan
  • /\ d {2} yana neman raguwa da lambobi 4 masu wakiltar rana
  • /( (.)) yana ɗaukar duk abin da yake a ƙarshen URL ɗin a cikin wani canji wanda zaku iya juyawa zuwa. A wannan yanayin:

https://martech.zone/$1

Wannan shine yadda yake gani a cikin Rank Math SEO plugin (wanda aka jera a matsayin ɗaya daga cikin namu fi so WordPress plugins), kawai kar ku manta don tabbatar da an saita nau'in Regex tare da dropdown:

matsayi math seo juyawa

Cire Blog, Rukuni, ko Sunayen Kungiyoyi ko Wasu Sharuɗɗa

Ana cire Blog - Idan kuna da kalmar "blog" a cikin tsarin ku na yau da kullun, zaku iya amfani da jujjuyawar Math SEO don cikawa

/blog/([a-zA-Z0-9_.-]+)$

Lura akan wannan, ban yi amfani da zaɓin (.*) Ba tunda wannan zai haifar da madauki idan ina da shafin da yake daidai /blog. Wannan yana buƙatar cewa akwai wani irin slug bayan bayan /blog /. Kuna son juyar da wannan kamar yadda yake a sama.

https://martech.zone/$1

Ana cire Rukunin - Don cirewa category daga slug ɗin ku (wanda ke can ta tsoho) tura fayil ɗin Matsayi Math SEO plugin wanda yana da zaɓi don tsiri category daga tsarin URL a cikin saitunan SEO ɗin su> Haɗin kai:

Category Math Strip Category daga Hanyoyi

Ana cire Kategorien - Idan kuna da rukunoni, za ku so ku mai da hankali sosai kuma ku ƙirƙiri jerin madaidaitan sunayen nau'ikan don haka ba da gangan ku ƙirƙirar madauwari madauwari ba. Ga misalin nan:

/(folder1|folder2|folder3)/([a-zA-Z0-9_.-]+)$

Bugu da ƙari, ban yi amfani da zaɓin (.*) Ba tunda wannan zai haifar da madauki idan ina da shafin da yake daidai /blog. Kuna son juyar da wannan kamar yadda yake a sama.

https://martech.zone/$1

Bayyanawa: Ni abokin ciniki ne kuma mai haɗin gwiwa Matsakaicin lissafi.

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.