Yoast SEO: Canonical URLs pane Saiti ine Sarudzo SSL

https

Patakafambisa saiti yedu kuenda ku Flywheel, hatina kumanikidza munhu wese muSSL kubatana (iyo https: // url iyo inosimbisa kubatana kwakachengeteka). Hatisati tasarudza pane izvi. Isu tinogona kuve nechokwadi chekuti mafomu kutumira uye iyo ecommerce chikamu zvakachengeteka, asi kwete chokwadi nezve ingori yepakati chinyorwa kuverenga.

Tichifunga izvozvo, takaona kuti hukama hwedu hwekoniyoni hwairatidza zvese kuchengetedzeka uye kusagadzikana. Handina kuverenga zvakawanda pamusoro wenyaya, asi izvo zvinoita sekunge zvinogona kunetsa kana Google iri kubata nzira yega yega. Chokwadi, mukati meWebmasters, taifanira kunyoresa saiti yakachengeteka zvakasiyana kuitira kuti ndingofungidzira kuti ingangokonzeresa nyonganiso.

Chii chinonzi Canonical Link?

A canonical link element chinhu chiri muchikamu chemusoro cheHTML peji (risingaonekwe nevashandisi) iro rinotungamira injini dzekutsvaga kune yakasarudzika vhezheni yewebhu peji. Ichi chinhu chakakosha kana uchigadzirisa yako saiti yekutsvaga injini sezvo iwe uchida kuona kuti chero chiremera chakapfuura kuburikidza nehukama chinoenda kune yakakodzera URL. Iyo yakawanda kwazvo yemukati manejimendi manejimendi masisitimu anogadzira akawanda nzira kune zvakafanana zvinyorwa. Pasina canonical kutsanangura yakakodzera nzira, chako chiremera chinogona kupatsanurwa pakati penzira dzakawanda kune zvakafanana zvinyorwa.

Mukuongorora iyo Yoast SEO plugin ruzivo ruzivo, iyo plugin inongodhonza iyo permalink kuburikidza neWordPress 'yakajairika basa. Mune mamwe mazwi, kana iwe uri pane rakachengeteka peji, iri kuenda kunonyora iyo https nzira, kana usiri - iri kuzonyora iyo http nzira. Ugh.

Mukati medingindira redu functions.php faira, uye uchishandisa Yoast's canonical firita wpseo_canonical, isu takawedzera rinotevera basa kumanikidza ese canonical zvinongedzo kune yakachengeteka URL:

basa mtb_canonical_ssl ($ url) {$ url = preg_replace ("/ ^ http: / i", "https:", $ url); dzosera $ url; } wedzera_filter ('wpseo_canonical', 'mtb_canonical_ssl');

Zvino, zvisinei nekuti inzira ipi inoshandiswa nemushandisi kana kuti chinokambaira cheGoogle chinobata sei canonical, chinongo ratidza senge peji rakachengetedzeka neiyo https: // URL nzira. Iyo Yoast plugin yaishandiswa kuve nesarudzo yekutsanangura izvi, asi zvinoita sekunge yakabviswa kubva kune iyo plugin.

2 Comments

  1. 1
  2. 2

Unofungei?

Nzvimbo iyi inoshandisa Akismet kuderedza spam. Dzidza kuti sei deta yako inoshandiswa.