Hi,

We have created the rewrite rule to redirect the client request to a dynamic 
URL when the requested content is not available in the origin server.

Here the challenge is we have to form the redirection URL based on the source 
URL. We would like to get the $1 value from the client requested URL.

FYR,
cond %{SEND_RESPONSE_HDR_HOOK} [AND]
cond %{INCOMING-PORT} =8006
cond %{STATUS} =404 [AND]
cond %{PATH} /PLTV/
set-redirect 302 http://XXXX:8006/EvoLive/$1/STB.m3u8  [QSA]
set-destination URL http://XXXX:8006/EvoLive/$1/STB.m3u8

Thanks,
Satheeshkuamr.R

Reply via email to