Support redirect of www to non-www and vice versa as part of config
@chriseagle đang làm issue này rồi.
Từ ngày 22/11/2023.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 204
- Fork
- 26
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của 10up/headstartwp
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
10up/headstartwp#950 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
10up/headstartwp#948 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
10up/headstartwp#902 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
10up/headstartwp#900 ·
-
Breaking Changes Roadmap / 2.0Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
10up/headstartwp#857 ·
Tất cả issue của 10up/headstartwp
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 87/100
Maintainer thường phản hồi trong vòng 1 ngày
-
🛠️ dette technique
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 61/100
betagouv/mon-entreprise#4752 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
franciscoBSalgueiro/en-croissant#1111 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area/providers type/feature version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anomalyco/opencode#64845 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày