How to redirect www to non-www domain in AWS load balancer

Set AWS ALB rule to redirect www domain to non www
 Go to Application Load Balancer  > Select ALB Name   > Listeners and rules, 
 Click on Listener Rule 











Next go to Listener rule section and add rule


 




Click to Add condition and next










Add a condition










Next, selection Host Header in rule condition type
type host header as your domain name, then confirm and save rule 











Now you can test rule typing in web browser as http://www.domain.com, it will automatically redirect to http://domain.com
Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment