RedirectRuleProps
Properties for defining a RedirectRule.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-esa-redirectrule
Initializer
using AlibabaCloud.SDK.ROS.CDK.Esa;
new RedirectRuleProps {
object ReserveQueryString,
object SiteId,
object StatusCode,
object TargetUrl,
object Type,
object Rule = null,
object RuleEnable = null,
object RuleName = null,
object SiteVersion = null
};
Properties
| Name | Type | Description |
|---|---|---|
ReserveQueryString | object | Property reserveQueryString: Indicates whether the feature of retaining the query string is enabled. |
SiteId | object | Property siteId: The website ID. |
StatusCode | object | Property statusCode: The response code that you want to use to indicate URL redirection. |
TargetUrl | object | Property targetUrl: The destination URL to which requests are redirected. |
Type | object | Property type: The redirect type. |
Rule | object | Property rule: Rule content, using conditional expressions to match user requests. |
RuleEnable | object | Property ruleEnable: Rule switch. |
RuleName | object | Property ruleName: Rule name. |
SiteVersion | object | Property siteVersion: The version number of the site configuration. |
ReserveQueryStringRequired
public object ReserveQueryString { get; set; }
- Type: object
Property reserveQueryString: Indicates whether the feature of retaining the query string is enabled.
Valid values: on off.
SiteIdRequired
public object SiteId { get; set; }
- Type: object
Property siteId: The website ID.
StatusCodeRequired
public object StatusCode { get; set; }
- Type: object
Property statusCode: The response code that you want to use to indicate URL redirection.
Valid values:
- 301
- 302
- 303
- 307
- 1.
TargetUrlRequired
public object TargetUrl { get; set; }
- Type: object
Property targetUrl: The destination URL to which requests are redirected.
TypeRequired
public object Type { get; set; }
- Type: object
Property type: The redirect type.
Valid value:
- static.
RuleOptional
public object Rule { get; set; }
- Type: object
Property rule: Rule content, using conditional expressions to match user requests.
When adding global configuration, this parameter does not need to be set. There are two usage scenarios: Match all incoming requests: value set to true Match specified request: Set the value to a custom expression, for example: (http.host eq "video.example.com").
RuleEnableOptional
public object RuleEnable { get; set; }
- Type: object
Property ruleEnable: Rule switch.
When adding global configuration, this parameter does not need to be set. Value range: on off.
RuleNameOptional
public object RuleName { get; set; }
- Type: object
Property ruleName: Rule name.
When adding global configuration, this parameter does not need to be set.
SiteVersionOptional
public object SiteVersion { get; set; }
- Type: object
Property siteVersion: The version number of the site configuration.
For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.