Sdílet prostřednictvím


RewriteOptionsExtensions.AddRedirectToWwwPermanent Metoda

Definice

Přetížení

AddRedirectToWwwPermanent(RewriteOptions, String[])

Trvale přesměruje požadavek na subdoménu www, pokud požadavek není www.

AddRedirectToWwwPermanent(RewriteOptions)

Trvale přesměruje požadavek na subdoménu www, pokud požadavek není www.

AddRedirectToWwwPermanent(RewriteOptions, String[])

Zdroj:
RewriteOptionsExtensions.cs

Trvale přesměruje požadavek na subdoménu www, pokud požadavek není 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

Parametry

options
RewriteOptions

Hodnota RewriteOptions

domains
String[]

Omezte pravidlo tak, aby platilo pouze pro zadané domény.

Návraty

Platí pro

AddRedirectToWwwPermanent(RewriteOptions)

Zdroj:
RewriteOptionsExtensions.cs
Zdroj:
RewriteOptionsExtensions.cs
Zdroj:
RewriteOptionsExtensions.cs

Trvale přesměruje požadavek na subdoménu www, pokud požadavek není 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

Parametry

options
RewriteOptions

Hodnota RewriteOptions

Návraty

Platí pro