Timeline for rel canonical for http and https
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 3, 2019 at 10:51 | comment | added | Abhijeet Pratap | You are right. It needs to be done using wordpress. I found the process to follow here. (webmasters.stackexchange.com/questions/104704/…) Thank You! | |
Jul 3, 2019 at 10:49 | vote | accept | Abhijeet Pratap | ||
Jul 3, 2019 at 8:35 | comment | added | DocRoot | I've updated my answer. But this should be done in WordPress IMO. | |
Jul 3, 2019 at 8:33 | history | edited | DocRoot | CC BY-SA 4.0 |
Added notes for setting this in .htaccess, but explained the difficulty in doing this.
|
Jul 3, 2019 at 5:05 | comment | added | Abhijeet Pratap | Sorry, if I am not making it clear. The error was likely triggered by cloudflare disruption. However, as you wrote, "Google will likely favour the HTTPS version over HTTP anyway", it looks like I do not need to worry a lot about setting the canonical version. If there is a code to set it using htaccess, please just let me know. Thank you! | |
Jul 2, 2019 at 21:20 | comment | added | Abhijeet Pratap | I also received a mail from cloudflare right now that a server disruption today caused a spike in 502 errors. In my webmaster account too, it is showing as a 5xx error. Plus the message was not for my preferred version which is non www but for the www version. I use non www urls. | |
Jul 2, 2019 at 21:13 | comment | added | DocRoot | "duplicate without user-selected canonical" - Are you sure that is related to just the difference in protocol? | |
Jul 2, 2019 at 21:12 | comment | added | DocRoot |
Whilst you can set the canonical URL in .htaccess (by setting the Link: HTTP response header), I don't see how you know what the canonical URL actually is at that point in time (unless you have some very strict requirements for the URL structure?) in order to set the canonical header? Only WordPress knows what the canonical URL is supposed to be - which naturally runs long after .htaccess has processed the request. (?)
|
|
Jul 2, 2019 at 20:11 | comment | added | Abhijeet Pratap | Hi Docroot, Can you give me the code for setting the preferred canonical version in htacces? | |
Jul 2, 2019 at 19:48 | comment | added | Abhijeet Pratap | Ok, I wanted to know how to set the canonical to https. One way is to set canonical to https version through Yoast SEO plugin for each url individually. I have heard it can also be done through htaccess. I already received a mail from webmasters regarding "duplicate without user-selected canonical". | |
Jul 2, 2019 at 19:39 | history | answered | DocRoot | CC BY-SA 4.0 |