Skip to content

Add opposites of AddRedirectToWww / AddRedirectToWwwPermanent #12978

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

Closed
kendaleiv opened this issue Aug 8, 2019 · 2 comments
Closed

Add opposites of AddRedirectToWww / AddRedirectToWwwPermanent #12978

kendaleiv opened this issue Aug 8, 2019 · 2 comments
Assignees
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares Docs This issue tracks updating documentation good first issue Good for newcomers.
Milestone

Comments

@kendaleiv
Copy link
Member

Currently there are built in redirects for these: https://github.com/aspnet/AspNetCore/blob/cc1f23c5f8afb7d2a00405f19811d2372c4fcec2/src/Middleware/Rewrite/src/RewriteOptionsExtensions.cs#L145 https://github.com/aspnet/AspNetCore/blob/cc1f23c5f8afb7d2a00405f19811d2372c4fcec2/src/Middleware/Rewrite/src/RewriteOptionsExtensions.cs#L125

It would be nice if there was built-in support for doing the opposite, redirecting from www.example.com to example.com.

@jkotalik jkotalik added the good first issue Good for newcomers. label Aug 8, 2019
@jkotalik
Copy link
Contributor

jkotalik commented Aug 8, 2019

Sounds like a decent addition. We would consider taking a PR to add this behavior if you are interested.

@jkotalik jkotalik added this to the Backlog milestone Aug 8, 2019
@jkotalik jkotalik added the Docs This issue tracks updating documentation label Nov 5, 2019
@jkotalik
Copy link
Contributor

jkotalik commented Nov 5, 2019

Need to add docs for this new feature 😄

@jkotalik jkotalik self-assigned this Nov 5, 2019
@jkotalik jkotalik modified the milestones: Backlog, 5.0.0 Nov 5, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2019
@amcasey amcasey added area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares and removed area-runtime labels Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares Docs This issue tracks updating documentation good first issue Good for newcomers.
Projects
None yet
Development

No branches or pull requests

5 participants