dotnet/aspnetcore

IISUrlRewrite "URL" parameter

Open

#6,002 opened on Sep 1, 2017

 (2 comments) (0 reactions) (0 assignees)C# (10,653 forks)batch import
area-middlewarehelp wanted

Repository metrics

Stars
 (37,933 stars)
PR merge metrics
 (PR metrics pending)

Description

We missed implementing the URL parameter in IIS Url Rewrite rules. The URL parameter will just return the original request url. Ex:

<rule name="LowerCaseRule1" enabled="true" stopProcessing="true">
    <match url="[A-Z]" ignoreCase="false" />
    <action type="Redirect" url="{ToLower:{URL}}" />
</rule>

the ToLower:{URL} would return the lower cased request url.

Contributor guide