RewriteOptionsExtensions.AddRedirectToWwwPermanent Method

Definition

Overloads

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.

AddRedirectToWwwPermanent(RewriteOptions, String[])

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

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

AddRedirectToWwwPermanent(RewriteOptions)

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

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

Parameters

Returns

Applies to