Classic Load Balancers can't redirect HTTP traffic to HTTPS. aws-cloudformation-templates/CloudFront.yaml at master - GitHub If you returned a redirect as a response to a POST request your client will follow up on that redirect, not CloudFront. using redirect modules or plugins provided by/for popular CMSs) and/or you want to move redirect rules out of the configuration files on your server, moving them up to the load balancer level might be the best option for applications hosted on AWS. At first create a hosted zone for your domain in route 53 and take note of the NS record. CloudFront is much more complicated to setup, and it will take about 15 minutes for every update. Choose the Origins tab. Under Web, click Get Started. 'internetFacing' must be 'true' # for CloudFront to access the load balancer and use it as an origin. Create a Lightsail load balancer and attach instances to it Configure the load balancer: Option. I recently migrated my WordPress to an EC2 instance. I attached an Elastic IP address to it and created an A record in my Route 53. . The basic idea of this post is to demonstrate how CloudFront can be utilized as a serverless reverse-proxy, allowing you to host all of your application's content and services from a single domain. I am a somewhat experienced sysadmin but am very new to wordpress. AWS Cloudfront + Load Balancer, url changes from main domain to load ... Select the Distributions tab on the left, and click the blue Create Distribution button. In the EC2 console, select Load Balancers on the left. Based on those rules it can either redirect or forward the incoming request to respective destination. Simplest way to do a 301 or 302 redirect with AWS : aws Amazon CloudWatch, which monitors resources and applications. Now log on your to Namecheap account and select the domain name and click on custom DNS. How to Setup AWS CloudFront for Externally Registered Domain Name The option that says: Register the domain name on Route 53. The argument is a bit field, so you can also . Moodle in English: Installing with AWS CloudFront and Load Balancer