Supported URL components
The source and target URLs of a URL redirect support different URL components.
The provided URL component examples in the reference table are based on the following URL:
URL component | Supported in source URL 1 | Supported in target URL |
---|---|---|
Scheme For example: https | Yes, http or https only(optional) | Yes |
User information For example: user:password | No | Yes (optional) |
Host For example: www.example.com | Yes | Yes (optional) |
Port For example: 443 | No | Yes (optional) |
Path For example: /search | Yes | Yes |
Query string For example: q=term | No | Yes, if Preserve query string is false (optional)You can only add a query string to the target URL if you do not keep the original query string (that is, if Preserve query string is false ). If you set Preserve query string to true , the query string of the request will be passed along when there is a match for the source URL. |
Fragment For example: results | No | Yes (optional) |
Bulk Redirects also support target URLs without an authority component 2, like the following URL: