RewriteOptionsExtensions.AddRedirectToWwwPermanent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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[])
- Source:
- RewriteOptionsExtensions.cs
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
- options
- RewriteOptions
The RewriteOptions.
- domains
- String[]
Limit the rule to apply only on the specified domain(s).
Returns
Applies to
AddRedirectToWwwPermanent(RewriteOptions)
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
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
- options
- RewriteOptions
The RewriteOptions.