Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
chriseagle opened this issue Nov 22, 2023 · 0 comments
Open
1 task done
Assignees
Labels
enhancement New feature or request

Comments

@chriseagle
Copy link
Contributor

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 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
@chriseagle chriseagle added the enhancement New feature or request label Nov 22, 2023
@chriseagle chriseagle self-assigned this Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant