WordPress: Wehe a kuhikuhi hou i kahi A YYYY / MM / DD Permalink Structure me Regex a me Rank Math SEO

E hoʻohuli iā YYYY / MM / DD Regex WordPress Rank Math SEO

ʻO ka maʻalahi ʻana i kāu hanana URL kahi ala maikaʻi loa e hoʻonui i kāu pūnaewele no nā kumu he nui. He paʻakikī nā URL lōʻihi e kaʻana like me nā poʻe ʻē aʻe, hiki keʻoki ʻia i nā luna hoʻoponopono huaʻōlelo a me nā luna hoʻoponopono leka uila, a hiki i nā hanana folder URL paʻakikī ke hoʻouna i nā hōʻailona hewa i nā ʻenekia huli i ka nui o kāu ʻike.

ʻAe YYYY / MM / DD Permalink

Inā ʻelua mau URL kāu pūnaewele, ʻo wai ka mea e manaʻo ai ua hāʻawi i ka ʻatikala me ka mea nui kiʻekiʻe?

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

ʻO kekahi o nā hoʻonohonoho paʻamau no WordPress ka loaʻa ʻana o kahi mana permalink ma ka blog e komo pū ana me ka yyyy / mm / dd ma loko o ka URL. ʻAʻole kūpono kēia no nā kumu ʻelua:

  1. Search Pake kaʻoi loa (SEO) - E like me ka mea i kūkākūkā ʻia ma luna nei, ke hōʻike nui nei ka hierarchy o ka pūnaewele i nā ʻenekini huli ʻo 4 ka waihona mai ka home ʻaoʻao… no laila ʻaʻole ia he mea nui.
  2. ʻAoʻao hopena ʻenekini huli (SERP) - He ʻatikala kupaianaha paha kāu ma kāu pūnaewele āu i kākau ai i ka makahiki i hala akā he pololei kēlā. Eia nō naʻe, ke paʻi nei nā pūnaewele ʻē aʻe i nā ʻatikala hou aʻe. Inā ʻoe i ʻike i kahi hoʻolālā lā i hoʻokahi makahiki i hala aku nei ma ka ʻaoʻao hopena ʻenekini huli (SERP), e kaomi paha ʻoe i ka ʻatikala kahiko? ʻAʻole paha.

ʻO ka hana mua e hana ai e hoʻohou i nā Pūʻali> Permalinks ma WordPress admin a hana i kāu permalink ka /% inoa inoa% /

Palapala Kauoha WordPress Permalink

ʻO kēia; Eia nō naʻe, e haki i kāu mau loulou i kau ʻia ma kāu blog. Ma hope o ka noho ʻana o kāu blog no kekahi manawa, ʻaʻole leʻaleʻa ka hoʻohui ʻana i nā kuhikuhi no kēlā me kēia ʻatikala kahiko. Maikaʻi kēlā no ka mea hiki iā ʻoe ke hoʻohana i kahi Expression Regular (Helu ʻO Regex) e hana i kēia. Nānā kahi ʻōlelo maʻamau no kahi kumu. I kēia hihia, ʻo kā mākou ʻōlelo maʻamau:

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

Wā ka ʻōlelo ma luna aʻe penei:

  • / \ d {4} nānā i kahi slash a me nā helu helu 4 e hōʻike ana i ka makahiki
  • / \ d {2} nānā i kahi slash a me nā helu helu 4 e hōʻike ana i ka mahina
  • / \ d {2} nānā i kahi slash a me nā helu helu 4 e hōʻike ana i ka lā
  • /(.*) hopu i nā mea ma ka hope o ka URL i kahi loli e hiki ai iā ʻoe ke hoʻohuli. I kēia hihia:

https://martech.zone/$1

ʻO kēia ke ʻano o ka nānā ʻana i loko o ka Rank Math SEO plugin (i helu ʻia ma ke ʻano he hoʻokahi o kā mākou punaewele WordPress punahele), mai poina e hōʻoia i ka hoʻonohonoho ʻia o ke ʻano Helu ʻO Regex me ke kulu:

hoʻohou i nā alakaʻi seo helu

Ke kāpae ʻana i ka Blog, Category, a i ʻole Nā Inoa ʻ Categorylelo a i ʻole nā ​​ʻ Otherlelo ʻē aʻe

Ke lawe nei i ka Blog - Inā loaʻa iā ʻoe ka huaʻōlelo “blog” i loko o kāu ʻano permalink, hiki iā ʻoe ke hoʻohana i ka hoʻoponopono ʻana o Rank Math SEO e noho ai.

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

Hoʻomaopopo e pili ana i kēia, ʻaʻole wau i hoʻohana i ke koho (. *) Mai ka mea e hana i kahi loop inā he ʻaoʻao kaʻu / blog wale nō. Pono kēia i kekahi ʻano slug ma hope o ka / blog /. Makemake ʻoe e hoʻohuli i kēia e like me ma luna.

https://martech.zone/$1

Ke wehe nei i ka mahele - E wehe waeʻano mai kāu slug (aia ma laila ma ka paʻamau) hoʻoili i ka Kūlana Math SEO plugin i loaʻa i kahi koho i mahele loloa mai ka hanana URL i kā lākou hoʻonohonoho SEO> Loulou:

ʻO ka mahele Math Strip ma nā loulou

Ke lawe nei i nā mahele - Inā he mau waeʻano kāu, makemake ʻoe e akahele aʻe a hana i kahi lālau o nā inoa maʻa kikoʻī i hana ʻole ʻoe i kahi loop loop. Eia kēlā laʻana:

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

Eia hou, ʻaʻole wau i hoʻohana i ke koho (. *) Mai ka mea e hana i kahi loop inā he ʻaoʻao kaʻu / blog wale nō. Makemake ʻoe e hoʻohuli i kēia e like me ma luna.

https://martech.zone/$1

Hōʻike: He mea kūʻai aku wau a pili pū kekahi o Kūleʻa Matematika.

Pehea kou manaʻo?

Ke hoʻohana nei kēia pūnaewele i ka Akismet e ho'ēmi i ka spam. E aʻo pehea e hanaʻia ai kāuʻikeʻikepili.