The DNS service lets you redirect HTTP traffic to another URL.
You can use HTTP redirects to:
- Redirect all HTTP traffic for an entire zone to another zone. For example, if a company owns
example.com, HTTP Redirect lets the company redirect all HTTP traffic for
example.com. This is a one-to-one mapping. Wildcards aren't supported.
- Redirect a specific subdomain to an HTTP URL. For example,
test.example.comcan be redirected to
- Redirect a subdomain to a URL with a port number. For example,
camera.example.comcan be redirected to
http://office.example.com:8080so a user can view their camera system without typing in the port number each time.
- Permanently redirect a domain name that has been deprecated by displaying a 301 response code. Permanently redirecting a domain name informs search engines and browsers what to do with the information.
After you create the redirect, you're issued a CNAME record for
redirect.waf.oci.oraclecloud.net. You must add this record to the originating DNS zone for the redirect to work.
Required IAM Policies
To use Oracle Cloud Infrastructure, you must be granted security access in a policy by an administrator. This access is required whether you're using the Console or the REST API with an SDK, CLI, or other tool. If you get a message that you don’t have permission or are unauthorized, verify with your administrator what type of access you have and which compartment to work in.
A policy like this allows a specific group to manage HTTP redirects:
Allow group <GroupName> to manage http-redirects in compartment <CompartmentName>