RewriteOptionsExtensions.AddRedirectToWww RewriteOptionsExtensions.AddRedirectToWww RewriteOptionsExtensions.AddRedirectToWww Method

Definition

Overloads

AddRedirectToWww(RewriteOptions) AddRedirectToWww(RewriteOptions) AddRedirectToWww(RewriteOptions)

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

AddRedirectToWww(RewriteOptions, Int32) AddRedirectToWww(RewriteOptions, Int32) AddRedirectToWww(RewriteOptions, Int32)

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

AddRedirectToWww(RewriteOptions) AddRedirectToWww(RewriteOptions) AddRedirectToWww(RewriteOptions)

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

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

AddRedirectToWww(RewriteOptions, Int32) AddRedirectToWww(RewriteOptions, Int32) AddRedirectToWww(RewriteOptions, Int32)

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

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

The status code to add to the response.

Returns

Applies to