Creating an HTTP Redirect
Create an HTTP redirect that lets you redirect HTTP traffic to another URL.
See HTTP Redirects for a feature overview and more information.
For general service information, see the DNS service overview.
Use the http-redirect create command and required parameters to create an HTTP redirect:
oci waas http-redirect create --compartment-id compartment_id --domain domain --target file://target.json
The
--generate-full-command-json-input
option can be used to generate a sample.json
file to be used with this command option. The key names are already populated and match the command option names, converted tocamelCase
format. For example,compartment-id
becomescompartmentId
. The values of the keys need to be populated by the user before using the sample file as an input to this command. For any command option that accepts more than one value, the value of the key can be aJSON
array.For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Run the CreateHttpRedirect operation to create an HTTP redirect.