[wp-trac] [WordPress Trac] #49369: redirect_canonical() should strip trailing protocols
WordPress Trac
noreply at wordpress.org
Mon Jul 20 12:33:35 UTC 2020
#49369: redirect_canonical() should strip trailing protocols
------------------------------------------+------------------------------
Reporter: onlyonemj | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: 5.3.2
Severity: major | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+------------------------------
Comment (by donmhico):
@onlyonemj - Thanks for the ticket. I'm having trouble finding out where
in WP Core is `http://` is being appended in the URL.
While it's possible to add a logic in `redirect_canonical()` which strips
out `http://` at the end of the URL but I feel like that won't be tackling
the source of the problem.
Did you try disabling the Cloudflare plugin since you mentioned its a
common plugin. Also try checking your sitemaps if
`https://domain.com/http://` is there.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49369#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list