RewriteOptionsExtensions.AddRedirectToWww 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
AddRedirectToWww(RewriteOptions) |
Redirect the request to the www subdomain if the incoming request is non-www. |
AddRedirectToWww(RewriteOptions, Int32) |
Redirect the request to the www subdomain if the incoming request is non-www. |
AddRedirectToWww(RewriteOptions, String[]) |
Redirect the request to the www subdomain if the incoming request is non-www. |
AddRedirectToWww(RewriteOptions, Int32, String[]) |
Redirect the request to the www subdomain if the incoming request is non-www. |
AddRedirectToWww(RewriteOptions)
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
Redirect the request to the www subdomain if the incoming request is non-www.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToWww(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww (this Microsoft.AspNetCore.Rewrite.RewriteOptions options);
static member AddRedirectToWww : Microsoft.AspNetCore.Rewrite.RewriteOptions -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToWww (options As RewriteOptions) As RewriteOptions
Parameters
- options
- RewriteOptions
The RewriteOptions.
Returns
Applies to
AddRedirectToWww(RewriteOptions, Int32)
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
- Source:
- RewriteOptionsExtensions.cs
Redirect the request to the www subdomain if the incoming request is non-www.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToWww(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, int statusCode);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode);
static member AddRedirectToWww : Microsoft.AspNetCore.Rewrite.RewriteOptions * int -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToWww (options As RewriteOptions, statusCode As Integer) As RewriteOptions
Parameters
- options
- RewriteOptions
The RewriteOptions.
- statusCode
- Int32
The status code to add to the response.
Returns
Applies to
AddRedirectToWww(RewriteOptions, String[])
- Source:
- RewriteOptionsExtensions.cs
Redirect the request to the www subdomain if the incoming request is non-www.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToWww(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, ... cli::array <System::String ^> ^ domains);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, params string[] domains);
static member AddRedirectToWww : Microsoft.AspNetCore.Rewrite.RewriteOptions * string[] -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToWww (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
AddRedirectToWww(RewriteOptions, Int32, String[])
- Source:
- RewriteOptionsExtensions.cs
Redirect the request to the www subdomain if the incoming request is non-www.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToWww(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, int statusCode, ... cli::array <System::String ^> ^ domains);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToWww (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, int statusCode, params string[] domains);
static member AddRedirectToWww : Microsoft.AspNetCore.Rewrite.RewriteOptions * int * string[] -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToWww (options As RewriteOptions, statusCode As Integer, ParamArray domains As String()) As RewriteOptions
Parameters
- options
- RewriteOptions
The RewriteOptions.
- statusCode
- Int32
The status code to add to the response.
- domains
- String[]
Limit the rule to apply only on the specified domain(s).