Support redirect of www to non-www and vice versa as part of config
@chriseagle 已经在做这个了。
开始于 2023年11月22日。
评估
这个 Issue 还没有评估数据。
描述
Is your enhancement related to a problem? Please describe.
Would like to suggest adding support for this to HeadStart config with a new key/value for redirectWww | redirectNonWww .
On previous projects within the same repo, individual stakeholders required different handling of this, adding as a config option would remove the ambiguity of the approach (middleware vs next.config).
Approach would be to extend withHeadstartWPConfig in a similar way to the extension for rewrite support and check via the host header of the request.
See https://github.com/10up/headstartwp/compare/develop...add-www-redirect-to-config as draft PR handling www to non-www.
cc @lucymtc
Designs
No response
Describe alternatives you've considered
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
- 主要语言
- TypeScript
- 星标
- 204
- 派生
- 26
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
10up/headstartwp 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
10up/headstartwp#950 ·
-
难度 3/5 1-2 天 新手友好度 48/100
10up/headstartwp#948 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
10up/headstartwp#902 ·
-
难度 5/5 一周以上 新手友好度 25/100
10up/headstartwp#900 ·
-
难度 5/5 一周以上 新手友好度 25/100
10up/headstartwp#857 ·
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 87/100
维护者通常 1 天内回复
-
🛠️ dette technique
难度 2/5 1-3 小时 新手友好度 61/100
betagouv/mon-entreprise#4752 · 1 条评论 ·
维护者通常 5 天内回复
-
type: bug
难度 2/5 1-3 小时 新手友好度 67/100
franciscoBSalgueiro/en-croissant#1111 ·
维护者通常 2 天内回复
-
area/providers type/feature version/v2
难度 2/5 1-3 小时 新手友好度 68/100
anomalyco/opencode#64845 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复