Determines if a file or directory exists.

Arguments

url
The pattern to match the current Location on. This pattern is a standard .NET regular expression.

Remarks

This condition allows you to take action based on the requested url. The url matched on is the current Location if rewrite rules have already altered the Location.

Examples

To forbid access to a URL, use:

<if url="^/private/(.+)$" />
<forbidden />
</if>

See Also