







Class to make dynamic binding of redirects. Instead of having to specify a number of similar redirect rules
a regular expression can be used to identify redirect urls and thier targets.
Namespace:
HttpServer.Rules
Assembly:
HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public class RegexRedirectRule : RedirectRule |
Visual Basic (Declaration) |
---|
Public Class RegexRedirectRule _ Inherits RedirectRule |
Visual C++ |
---|
public ref class RegexRedirectRule : public RedirectRule |
Examples
new RegexRedirectRule("/(?<target>[a-z0-9]+)", "/users/${target}?find=true", RegexOptions.IgnoreCase)