RewriteOptionsExtensions.AddRedirectToWwwPermanent 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
参数
- options
- 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
参数
- options
- RewriteOptions