Dela via


RewriteOptionsExtensions Class

Definition

The builder to a list of rules for RewriteOptions and RewriteMiddleware

public ref class RewriteOptionsExtensions abstract sealed
public static class RewriteOptionsExtensions
type RewriteOptionsExtensions = class
Public Module RewriteOptionsExtensions
Inheritance
RewriteOptionsExtensions

Methods

Add(RewriteOptions, Action<RewriteContext>)

Adds a rule to the current rules.

Add(RewriteOptions, IRule)

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