Add opposites of AddRedirectToWww / AddRedirectToWwwPermanent #12978
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
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
toexample.com
.The text was updated successfully, but these errors were encountered: