HAProxy community

[Solved] Rewrite a complete URL instead of just path or uri

I put my example in here: https://dooby.fr/links/?IxO7cg

http-request redirect code 301 location https://my.url.com%[path,regsub(^/my_old_path,,)] if { path_beg /my_old_path }

here, the purpose is to redirect a hit on https://url.com/my_old_path/foo/bar/baz to https://my.url.com/foo/bar/baz