I created Application Load Balancer in AWS and installed word press website on ec2-instance. I can access website fine if I access using the public ip address of ec2-instance. However, I cannot access the pages whenever I try to access using DNS Name of Application Load Balancer. The error code returned by chrome is 301.
Security Group of instance allows all traffic from load balancer at port 80.
There is nothing in the access logs or error logs. I have no experience dealing with wordpress. Please let me know if I can provide any further information to find issue.
Edit:
If I place the same instance behind Classic Load Balancer, instead of Application Load Balancer, then it seems to work fine.