RewriteOptionsExtensions.AddRedirectToNonWww Method

Definition

Overloads

AddRedirectToNonWww(RewriteOptions, Int32, String[])

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.

AddRedirectToNonWww(RewriteOptions, Int32)

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

AddRedirectToNonWww(RewriteOptions, Int32, String[])

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToNonWww(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, int statusCode, ... cli::array <System::String ^> ^ domains);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWww (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode, params string[] domains);
static member AddRedirectToNonWww : Microsoft.AspNetCore.Rewrite.RewriteOptions * int * string[] -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToNonWww (options As RewriteOptions, statusCode As Integer, ParamArray domains As String()) As RewriteOptions

Parameters

statusCode
Int32

The status code to add to the response.

domains
String[]

Limit the rule to apply only on the specified domain(s).

Returns

Applies to

AddRedirectToNonWww(RewriteOptions, String[])

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToNonWww(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, ... cli::array <System::String ^> ^ domains);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWww (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, params string[] domains);
static member AddRedirectToNonWww : Microsoft.AspNetCore.Rewrite.RewriteOptions * string[] -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToNonWww (options As RewriteOptions, ParamArray domains As String()) As RewriteOptions

Parameters

domains
String[]

Limit the rule to apply only on the specified domain(s).

Returns

Applies to

AddRedirectToNonWww(RewriteOptions)

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToNonWww(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWww (this Microsoft.AspNetCore.Rewrite.RewriteOptions options);
static member AddRedirectToNonWww : Microsoft.AspNetCore.Rewrite.RewriteOptions -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToNonWww (options As RewriteOptions) As RewriteOptions

Parameters

Returns

Applies to

AddRedirectToNonWww(RewriteOptions, Int32)

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToNonWww(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, int statusCode);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToNonWww (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode);
static member AddRedirectToNonWww : Microsoft.AspNetCore.Rewrite.RewriteOptions * int -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToNonWww (options As RewriteOptions, statusCode As Integer) As RewriteOptions

Parameters

statusCode
Int32

The status code to add to the response.

Returns

Applies to