Share via


RewriteOptions Class

Definition

Options for the RewriteMiddleware

public ref class RewriteOptions
public class RewriteOptions
type RewriteOptions = class
Public Class RewriteOptions
Inheritance
RewriteOptions

Constructors

RewriteOptions()

Properties

Rules

A list of IRule that will be applied in order upon a request.

StaticFileProvider

Gets and sets the File Provider for file and directory checks.

Extension Methods

AddApacheModRewrite(RewriteOptions, IFileProvider, String)

Add rules from an Apache mod_rewrite file

AddApacheModRewrite(RewriteOptions, TextReader)

Add rules from an Apache mod_rewrite file

AddIISUrlRewrite(RewriteOptions, IFileProvider, String, Boolean)

Add rules from a IIS config file containing Url Rewrite rules

AddIISUrlRewrite(RewriteOptions, IFileProvider, String)

Add rules from a IIS config file containing Url Rewrite rules

AddIISUrlRewrite(RewriteOptions, TextReader, Boolean)

Add rules from a IIS config file containing Url Rewrite rules

AddIISUrlRewrite(RewriteOptions, TextReader)

Add rules from a IIS config file containing Url Rewrite rules

Add(RewriteOptions, IRule)

Adds a rule to the current rules.

Add(RewriteOptions, Action<RewriteContext>)

Adds a rule to the current rules.

AddRedirect(RewriteOptions, String, String, Int32)

Redirect the request if the regex matches the HttpContext's PathString

AddRedirect(RewriteOptions, String, String)

Redirect the request if the regex matches the HttpContext's PathString

AddRedirectToHttps(RewriteOptions, Int32, Nullable<Int32>)

Redirect a request to https if the incoming request is http

AddRedirectToHttps(RewriteOptions, Int32)

Redirect a request to https if the incoming request is http

AddRedirectToHttps(RewriteOptions)

Redirect a request to https if the incoming request is http

AddRedirectToHttpsPermanent(RewriteOptions)

Redirect a request to https if the incoming request is http, with returning a 301 status code for permanently redirected.

AddRedirectToNonWww(RewriteOptions, Int32, String[])

Redirect the request to the root domain if the incoming request is from the www subdomain.

AddRedirectToNonWww(RewriteOptions, Int32)

Redirect the request to the root domain if the incoming request is from the www subdomain.

AddRedirectToNonWww(RewriteOptions, String[])

Redirect the request to the root domain if the incoming request is from the www subdomain.

AddRedirectToNonWww(RewriteOptions)

Redirect the request to the root domain if the incoming request is from the www subdomain.

AddRedirectToNonWwwPermanent(RewriteOptions, String[])

Permanently redirects the request to the root domain if the request is from the www subdomain.

AddRedirectToNonWwwPermanent(RewriteOptions)

Permanently redirects the request to the root domain if the request is from the www subdomain.

AddRedirectToWww(RewriteOptions, Int32, String[])

Redirect the request to the www subdomain if the incoming request is non-www.

AddRedirectToWww(RewriteOptions, Int32)

Redirect the request to the www subdomain if the incoming request is non-www.

AddRedirectToWww(RewriteOptions, String[])

Redirect the request to the www subdomain if the incoming request is non-www.

AddRedirectToWww(RewriteOptions)

Redirect the request to the www subdomain if the incoming request is non-www.

AddRedirectToWwwPermanent(RewriteOptions, String[])

Permanently redirects the request to the www subdomain if the request is non-www.

AddRedirectToWwwPermanent(RewriteOptions)

Permanently redirects the request to the www subdomain if the request is non-www.

AddRewrite(RewriteOptions, String, String, Boolean)

Adds a rule that rewrites the path if the regex matches the HttpContext's PathString.

Applies to