You need to enable JavaScript to run this app. GitHub Pages搭配Let's Encrypt的HTTPS重定向失效问题求助
优惠活动
大模型
产品
解决方案
定价
更多

GitHub Pages搭配Let's Encrypt的HTTPS重定向失效问题求助

我持有example.com和example.org两个域名。
目前配置的所有跳转在HTTP及部分HTTPS场景下均按预期运行:

HTTP://www.example.com redirects to HTTPS://www.example.org (as expected)
HTTP://example.com redirects to HTTPS://www.example.org (as expected)
HTTP://www.example.org redirects to HTTPS://www.example.org (as expected)
HTTP://example.org redirects to HTTPS://www.example.org (as expected)
HTTPS://example.org redirects to HTTPS://www.example.org (as expected)

但使用HTTPS时的部分跳转无法正常工作,初步判断原因是未向CA(GitHub Pages集成使用的Let's Encrypt服务)证明自身对example.com的所有权。
当前需要实现的HTTPS跳转规则为:

HTTPS://www.example.com should redirect to HTTPS://www.example.org
HTTPS://example.com should redirect to HTTPS://www.example.org

之前看到的同类型跳转需求相关讨论和自身场景匹配,但内容偏底层运维、超出理解范围,不清楚如何在GitHub Pages搭配Namecheap域名解析的组合场景下完成对应配置。

内容的提问来源于stack exchange,提问作者Ezra

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.11.12 04:24:04