Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

should rel-canonical also include protocol (http/https)?

Tags:

html

seo

rel

I'm migrating my website from http to https (although it will still support access via http)

Currently all of my pages have accurate rel-canonical meta tags set in the HTML, but obviously they all point to the canonical http:// url.

Should I now be updating those to https:// too, or is it ok to leave them as http?

I'm wondering whether Google will penalise me, or start detecting duplicate content, if I start mixing them

like image 768
carpii Avatar asked Apr 06 '26 12:04

carpii


1 Answers

Yes Google sees http and https as different sites so you should update them.

A redirect on the server might be sufficient in the short term but personally I would be looking to update the pages as soon as you can.

like image 183
Barry Pollard Avatar answered Apr 25 '26 05:04

Barry Pollard