> Am 30.05.2018 um 10:12 schrieb Sebastian Benoit <be...@openbsd.org>: > > Sebastian Benoit(be...@openbsd.org) on 2018.05.30 10:10:51 +0200: >> Reyk Floeter(r...@openbsd.org) on 2018.05.29 18:48:31 +0200: >>> Hi, >>> >>> it's about time. >>> >>> server "default" { >>> listen on * port 80 >>> location match "/de/(.*)" { >>> request rewrite "/ch/%1" >>> } >>> } >>> >>> You can also you the macros as in the "block return" external >>> redirects. So maybe something like: >>> >>> server "default" { >>> listen on * port 80 >>> location match "/(.*)" { >>> request rewrite "/$HTTP_HOST/%1" >>> } >>> } >>> >>> Tests? OK? >> >> nice, >> >> but why use %1 instead of $1 as all other mechanisms of this kind do (that i >> knwo of)? > > to answer myself: patterns(7)
Right ;-) I’m going to stick with it. Reyk