user2570937
user2570937

Reputation: 852

AWS Application Load Balancer redirect all www and non http to https://

I have a rule setup to redirect all traffic from http to https

enter image description here

How can I also redirect http://www to https://? As far as I can tell the {host} variable contains www and I cant remove it.

Upvotes: 1

Views: 351

Answers (1)

VivienG
VivienG

Reputation: 2180

In fact it's pretty simple
Instead of writing {host} in your rule just put the name of your website.
So, for example, it will look like this : https://example.com:443/#{path}?#{query}

Upvotes: 1

Related Questions