Get url of rtmp://st.example.com/live/test possible?

Is there a possibility to identify the ‘path’ of an rtmp request?

So you can use something like this
http-request … if { path /live/ }

No, that’s for HTTP.

Yes I have seen more of these questions here. I think the reason for this, is that some rtmp stream is being delivered to the server and clients trying to receive this via hls/dash need to be redirected to that specific server.

My idea was also trying to grab the streamkey part of the rtmp url and the streamkey part of the hls url and redirect them to the same server.

I have no idea how this could otherwise be done, except maybe via pre-configured ip/port/url or so.