Skip to content

Add redirect to domain if request is www. #13486

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
wants to merge 2 commits into from
Closed

Add redirect to domain if request is www. #13486

wants to merge 2 commits into from

Conversation

SARAVANA1501
Copy link

Summary of the changes (Less than 80 chars)

  • Added new rule to handle redirects.
  • Added new Extension methods in RewriteOptionsExtensions.cs
  • Added Unit tests to validate the changes.

Addresses #12978 (in this specific format)

@dnfclas
Copy link

dnfclas commented Aug 27, 2019

CLA assistant check
All CLA requirements met.

@SARAVANA1501
Copy link
Author

Hi Team,
I found there are few commonalities between Domain redirection vs WWW redirection. Can we stub out common functionalities to base class?
Guide me on this...

@jkotalik
Copy link
Contributor

@SARAVANA1501, unfortunately, someone created the exact same PR a few weeks ago: #12997. We have been locking down our 3.0 release so I haven't gotten the chance to review it entirely. I'll try to figure out a way to give both of you credit for this PR.

@amcasey amcasey added the area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares label Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants