I-Yoast SEO: Ii-URL ze-Canonical kwiSayithi ene-SSL ekhethiweyo

https

Xa sifudusele indawo yethu Flywheel, Asizange sinyanzele wonke umntu kunxibelelwano lwe-SSL (i-https: // url eqinisekisa unxibelelwano olukhuselekileyo). Asikagqibi koku. Singaqinisekisa ukuba ukungeniswa kweefom kunye nenxalenye ye-ecommerce zikhuselekile, kodwa akuqinisekanga malunga nenqaku eliqhelekileyo lokufunda.

Ngale nto engqondweni, saqonda ukuba amakhonkco ethu abhaliweyo abonakala ekhuselekile kwaye engakhuselekanga. Andifundanga okuninzi ngesihloko, kodwa kubonakala ngathi kunokuba yingxaki ukuba uGoogle unyanga indlela nganye ngokwahlukeneyo. Ewe, ngaphakathi kwe-Webmasters, kuye kwafuneka sibhalise indawo ekhuselekileyo ngokwahlukeneyo ukuze ndicinge ukuba inokubangela ukudideka.

Yintoni ikhonkco leCanonical?

Indawo yekhonkco ye-canonical yinto kwicandelo eliyintloko lephepha le-HTML (elingabonakaliyo kubasebenzisi) elikhokela iinjini zokukhangela kuhlobo olukhethiweyo lwephepha lewebhu. Le yinto ebalulekileyo xa ulungiselela indawo yakho kwiinjini yokukhangela kuba ufuna ukuqinisekisa ukuba naliphi na igunya elidlulayo kwiikhonkco liya kwi-URL efanelekileyo. Uninzi lweenkqubo zolawulo lomxholo zivelisa iindlela ezininzi zomxholo ofanayo. Ngaphandle kwe-canonical yokuchaza indlela efanelekileyo, igunya lakho lingahlulwa phakathi kweendlela ezininzi kumxholo ofanayo.

Ukujonga kwakhona Yoast seo isiseko solwazi lweplagi, iplagi itsala ngokulula i-permalink ngokusebenzisa i-WordPress 'umsebenzi osemgangathweni. Ngamanye amagama, ukuba ukwiphepha elikhuselekileyo, liza kudwelisa umendo we-https, ukuba awukho- iya kudwelisa umendo we-http. Ugh.

Ngaphakathi kumxholo wethu Imisebenzi.php ifayile, kunye nokusebenzisa isihluzo se-Yoast wpseo_yikonica, songeze lo msebenzi ulandelayo ukunyanzela lonke ikhonkco kwi-URL ekhuselekileyo:

sebenza mtb_canonical_ssl ($ url) {$ url = preg_replace ("/ ^ http: / i", "https:", $ url); buyisela $ url; } ukongeza_filter ('wpseo_canonical', 'mtb_canonical_ssl');

Ngoku, nokuba yeyiphi na indlela umsebenzisi ahamba kuyo okanye indlela umrhubuluzi kaGoogle ayithatha ngayo i-canonical, iya kubonakala njengephepha elikhuselekileyo elinomkhondo we-https: // URL. Iplagi yeYoast isetyenziselwe ukuba ichaze oku, kodwa kubonakala ngathi icinyiwe kwiplagi.

2 Comments

  1. 1
  2. 2

Ingaba ucinga ntoni?

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda indlela idatha yakho yokubhaliweyo isetyenziswe ngayo.