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

オープン
#653 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@chriseagle がすでに取り組んでいます。

2023年11月22日 から。

評価

この issue はまだ評価されていません。

説明

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
主要言語
TypeScript
スター
204
フォーク
26
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

10up/headstartwp のほかの issue

10up/headstartwp の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。