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

Aperta
#653 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@chriseagle ci sta già lavorando.

Dal 22/11/2023.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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
Lingua principale
TypeScript
Stelle
204
Fork
26
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di 10up/headstartwp

Tutte le issue di 10up/headstartwp

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.