共用方式為


RewriteOptionsExtensions.AddRedirectToWwwPermanent 方法

定義

多載

AddRedirectToWwwPermanent(RewriteOptions, String[])

如果要求不是 www,請永久將要求重新導向至 www 子域。

AddRedirectToWwwPermanent(RewriteOptions)

如果要求不是 www,請永久將要求重新導向至 www 子域。

AddRedirectToWwwPermanent(RewriteOptions, String[])

來源:
RewriteOptionsExtensions.cs

如果要求不是 www,請永久將要求重新導向至 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

參數

domains
String[]

限制規則僅適用于指定的網域 () 。

傳回

適用於

AddRedirectToWwwPermanent(RewriteOptions)

來源:
RewriteOptionsExtensions.cs
來源:
RewriteOptionsExtensions.cs
來源:
RewriteOptionsExtensions.cs

如果要求不是 www,請永久將要求重新導向至 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

參數

傳回

適用於