Support redirect of www to non-www and vice versa as part of config

Đang mở
#653 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@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ả

enhancement
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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của 10up/headstartwp

Tất cả issue của 10up/headstartwp

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.