Irule to match pattern and redirect

Problem this snippet solves:

Hi,

www.example.xyz/sd/test/sd?pid=http://testssd.xyz&target=http://testesd.xyz

I need to write regexp pattern to get value of target=http://testesd.xyz

and redirect to

www.sub.example.xyz/sd/test/disd?dest=http://testesd.xyz

Code :

Hi, I need help with writing irule for this case:

www.example.xyz/sd/test/sd?pid=http://testssd.xyz&target=http://testesd.xyz

I need to write regexp pattern to get value of target=http://testesd.xyz

and redirect to

www.sub.example.xyz/sd/test/disd?dest=http://testesd.xyz
Updated Jun 06, 2023
Version 2.0
  • Hi,

     

    you are in the wrong part of the forum...

     

    post your question in Answers section.