Yoast SEO: Nā URL Canonical ma kahi Pūnaewele me SSL Kō koho

https

Ke neʻe mākou i kā mākou pūnaewele i Flywheel, ʻaʻole mākou i koi aku i nā mea āpau i kahi pilina SSL (ka https: // url e hōʻoia ana i ka pilina paʻa). Kūleʻa ʻole mākou i kēia. E hōʻoia mākou i ka waiho ʻana o nā palapala a me ka ʻāpana ecommerce, akā ʻaʻole maopopo e pili ana i ka ʻatikala maʻamau e heluhelu.

Me kēlā i manaʻo ai, ua ʻike mākou i ko mākou loulou canonical e hōʻike nei i ka palekana a me ka palekana ʻole. ʻAʻole wau i heluhelu nui i ke kumuhana, akā manaʻo paha ia he pilikia inā mālama ʻokoʻa ʻo Google i kēlā me kēia ala. ʻOiaʻiʻo, i loko o Webmasters, pono mākou e hoʻopaʻa inoa i ka pūnaewele paʻa i hiki ai iaʻu ke koho he mea huikau ia.

He aha kahi loulou Canonical?

ʻO kahi mea loulou canonical kahi mea i ka ʻāpana poʻo o kahi ʻaoʻao HTML (ʻike ʻole ʻia e nā mea hoʻohana) e alakaʻi i nā ʻenekia huli i ka mana i makemake ʻia o kahi ʻaoʻao pūnaewele. He mea nui kēia i ka optimizing i kāu pūnaewele no nā ʻenekini huli ʻoiai ʻoe makemake e hōʻoia i ka hele ʻana o ka mana ma o nā loulou i ka URL kūpono. ʻO ka hapa nui o nā ʻōnaehana hoʻokele ʻike hana i nā ala he nui i ka ʻike like. Me ka ʻole o kahi canonical e wehewehe ai i ke ala kūpono, hiki ke hoʻokaʻawale ʻia kāu mana ma waena o nā ala he nui i ka ʻike like.

I ka loiloi ʻana i ka Yoast SEO kahua ʻike plugin, huki wale ka plugin i ka permalink ma o ka hana maʻamau a WordPress. I nā huaʻōlelo ʻē aʻe, inā ʻoe ma kahi ʻaoʻao paʻa, e helu ana ia i ke ala https, inā ʻaʻole ʻoe - e helu ana ia i ke ala http. Uh.

Ma loko o kā mākou kumuhana functions.php faila, a me ka hoʻohana ʻana i kā Yoast kānana kānana wpseo_canonical, ua pākuʻi mākou i kēia hana e koi i nā loulou canonical āpau i ka URL paʻa:

hana mtb_canonical_ssl ($ url) {$ url = preg_replace ("/ ^ http: / i", "https:", $ url); hoʻihoʻi $ url; } add_filter ('wpseo_canonical', 'mtb_canonical_ssl');

I kēia manawa, me ka nānā ʻole i ke ala hea a ka mea hoʻohana e hele ai a i ʻole pehea e hopu ai ka mea kolo Google i ka canonical, e hōʻike wale ʻia ia ma ke ʻano he ʻaoʻao palekana me ke ala https: // URL. Ua hoʻohana ka Yoast plugin i kahi koho e wehewehe i kēia, akā ʻike ʻia ua depricated ia mai ka plugin.

2 Comments

  1. 1
  2. 2

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.