Redirect Args
data class RedirectArgs(val glob: Output<String>? = null, val location: Output<String>, val regex: Output<String>? = null, val statusCode: Output<Int>) : ConvertibleToJava<RedirectArgs>
A Redirect
specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
Constructors
Link copied to clipboard
fun RedirectArgs(glob: Output<String>? = null, location: Output<String>, regex: Output<String>? = null, statusCode: Output<Int>)
Functions
Properties
Link copied to clipboard
The value to put in the HTTP location header of the response. The location can contain capture group values from the pattern using a :
prefix to identify the segment and an optional *
to capture the rest of the URL. For example: "glob": "/:capture*", "statusCode": 301, "location": "https://example.com/foo/:capture"