Reputation: 995
I'm trying to redirect all traffic except for one file to https
My current config:
frontend public
# HTTP
bind :80
redirect scheme https code 301 if !{ ssl_fc } !{ path_beg -i /dont-redirect-this.php }
It successfully redirects all traffic but also /dont-redirect-this.php
which I dont want it to.
Any ideas what I'm doing wrong?
Upvotes: 1
Views: 2185
Reputation: 995
I just solved this
redirect scheme https code 301 if !{ url_reg \dont-redirect-this.php } !{ ssl_fc }
Upvotes: 4