Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4748

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

$
0
0

@theonlydoo wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4748

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>