AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Does the Rewrite middleware support conditions?

Open dhayhak opened this issue 8 years ago • 2 comments

I would love to Add a rewrite rule that will apply one a condition is met. Is this possible?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

dhayhak avatar May 16 '18 15:05 dhayhak

If using a RegEx on the incoming path or IIS Rewrite Module (or Apache mod_rewrite) rule doesn't meet your needs, you can set up an IRule-based rule and apply any special conditions that you like.

guardrex avatar May 16 '18 15:05 guardrex

Awesome, thanks!

dhayhak avatar May 16 '18 15:05 dhayhak