Hey everyone, currently i am playing around with the HAproxy feature of the OPNsense Firewall. I need to redirect https://www.example.com to https://example.com and don't know, how i could achieve this.
Hopefully somebody could help me :)
Did you ever figure this out?
I'm not knowledgeable on haproxy but I would probably do a condition and a rule.
First I'd create a condition "Traffic is HTTP".
Then a rule that would use that condition, and execute a "http-request redirect".
Then compare the result config with the manual http://cbonte.github.io/haproxy-dconv/2.4/configuration.html#4-redirect (http://cbonte.github.io/haproxy-dconv/2.4/configuration.html#4-redirect)