[wp-trac] [WordPress Trac] #64029: Canonical redirect on `/page/1/` forces HTTP instead of HTTPS behind proxy/CDN

WordPress Trac noreply at wordpress.org
Tue Sep 23 13:31:00 UTC 2025


#64029: Canonical redirect on `/page/1/` forces HTTP instead of HTTPS behind
proxy/CDN
--------------------------+-----------------------------
 Reporter:  igor2021      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Canonical     |    Version:  6.8.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When WordPress handles canonical redirects for paginated archives, it
 forces `/page/1/` to `/`.
 The problem: if the site is running behind a proxy/CDN (e.g. Cloudflare),
 WordPress sometimes issues the redirect to `http://` instead of preserving
 the original `https://` scheme.

 This causes unnecessary redirect chains and breaks SEO performance.

 Steps to reproduce:
 1. Open `https://example.com/category/page/1/`
 2. WordPress redirects to `http://example.com/category/`
 3. Proxy/CDN enforces HTTPS → results in 2 or 3 chained redirects.

 Expected result:
 WordPress should preserve the HTTPS scheme when performing canonical
 redirects (or allow disabling `/page/1/ → /` canonicalization via a
 filter/setting).

 Notes:
 This has been discussed by many site owners using HTTPS-only setups.
 A core fix or an option in Settings would prevent extra redirect hops.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64029>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list