Conditions
Conditions control which actions are executed. UrlRewriter.NET provides the most commonly used conditions such as matching on URL, headers, etc. You can also extend UrlRewriter.NET by defining your own custom conditions.
- address
- a condition on the IP address or IP address range.
- header match
- matches on a specified header.
- method
- matches on the given method (GET, POST, etc.).
- property match
- matches on the property value.
- exists
- determines if a file or directory exists.
- url match
- matches on the current Location.
- Create a custom condition
- how to implement your own conditions.
Conditions can be combined together to form powerful expressions:
<if method="PUT" address="192.168.0.*" url="^/services/.+"> ... </if>