RewriteOptionsExtensions.AddRedirectToWwwPermanent 方法

定义

重载

AddRedirectToWwwPermanent(RewriteOptions, String[])

如果请求不是 www,则永久将请求重定向到 www 子域。

AddRedirectToWwwPermanent(RewriteOptions)

如果请求不是 www,则永久将请求重定向到 www 子域。

AddRedirectToWwwPermanent(RewriteOptions, String[])

Source:
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)

Source:
RewriteOptionsExtensions.cs
Source:
RewriteOptionsExtensions.cs
Source:
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

参数

返回

适用于