Skip to content

Instantly share code, notes, and snippets.

@double-p
Created July 27, 2017 09:11
Show Gist options
  • Save double-p/7410ce8ce5e1389586fd0855e59dea39 to your computer and use it in GitHub Desktop.
Save double-p/7410ce8ce5e1389586fd0855e59dea39 to your computer and use it in GitHub Desktop.
haproxy.conf:
http-request redirect location %[path,lower,map(/etc/haproxy/redirects-path.map)]%HQ code 301 if { path,lower,map(/etc/haproxy/redirects-path.map) -m found }
redirects-path.map:
/ /en/home/index.html
/en /en/home/index.html
/en/ /en/home/index.html
#and so on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment