HTTP to HTTPS Redirect From Application Load Balancer


Application Load Balancers now support sending HTTP redirects to your clients as an action. This allows you to easily redirect HTTP traffic to your HTTPS, freeing you from running webservers just to perform redirects. You can redirect requests based on any routing rule. If you have an old URI that you don't want to maintain a redirect for in your application, offload it to the Appliction Load Balancer!

What happens to an HTTP request when it's redirected?

redirect_curl

When a request is sent to the exampleloadbalancer demo site through HTTP with cURL, ALB (Server: awselb/2.0) redirects the request by sending a "HTTP 301 Moved Permanently" response with "Location" header set to the redirected URL which use HTTPS.

Give it a try!

http://exampleloadbalancer.info