As you can see, the only common part part between those two is BLOB. I’ve tried fumbling around with if statements and regex without success. Can’t figure it out from documentation
I imagine it could look something like this, but it doesn’t work.
You’ve formatted your subdirectives like a rewrite, but redir uses a different syntax. redir doesn’t support dynamic locations in this manner. It does support request placeholders, though.
You might be able to cheat a little bit by using rewrite to format the entire URI before redirecting onwards. I’ve never personally tried this before, but give this a shot and see how you go:
# Rewrite using regex to format the URI to our desired result
rewrite {
r ^/hello/(.*)$
to /signup?param={1}
}
# Then send the whole rewritten URI to the destination
redir 307 {
/ example.com{rewrite_uri}
}