This topic describes how to make configurations to redirect HTTP requests to HTTPS. HTTPS is the secure version of HTTP. Server Load Balancer (SLB) supports redirecting HTTP requests to HTTPS to facilitate whole-site HTTPS deployment. Redirecting HTTP requests to HTTPS is available in all regions.
An HTTPS listener is created. For more information, see Add an HTTPS listener.
In the following process, HTTP 80 requests are redirected to HTTPS 443.
Log on to the Server Load Balancer console.
In the top navigation bar, select the region where the SLB instance is deployed.
On the Instances page, find the SLB instance and click its ID.
Click the Listener tab and then click Add Listener.
In the Protocol and Listener step, set Select Listener Protocol to HTTP and Listening Port to 80.
Click Modify next to Advanced.
Enable Redirection and set Target Port to HTTPS:443.
In the Confirm step, click Submit and then click OK.
After the redirection feature is enabled, all HTTP requests will be redirected to the HTTPS listener and forwarded based on the listener configurations of the HTTPS listener.