RewriteOptionsExtensions.AddRedirectToWww Method

Definition

Overloads

AddRedirectToWww(RewriteOptions)

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, Int32, 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.

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

Parameters

Returns

Applies to

AddRedirectToWww(RewriteOptions, Int32)

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

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

Parameters

statusCode
Int32

The status code to add to the response.

Returns

Applies to

AddRedirectToWww(RewriteOptions, String[])

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToWww(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, ... cli::array <System::String ^> ^ domains);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, params string[] domains);
static member AddRedirectToWww : Microsoft.AspNetCore.Rewrite.RewriteOptions * string[] -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToWww (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

AddRedirectToWww(RewriteOptions, Int32, String[])

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToWww(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, int statusCode, ... cli::array <System::String ^> ^ domains);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode, params string[] domains);
static member AddRedirectToWww : Microsoft.AspNetCore.Rewrite.RewriteOptions * int * string[] -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToWww (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