Forum Discussion

PowerShellDon_1's avatar
PowerShellDon_1
Icon for Nimbostratus rankNimbostratus
Apr 24, 2017

iRule to redirect if querystring matches list

Hi I have a request to redirect users to a different URL for matching parameters. For example;

 

Current URL: https://xxx.domain.com/Foo/Bar?aa=NNNNNNN

 

New URL: https://yyy.domain.com/?aa=NNNNNN

 

Where NNNNNN is a unique identifier.

 

I would ideally like to hold a list of these NNNN's in a Data Group and redirect sessions if NNNNNNN matches a item in a Data Group.

 

Any pointers would be much appreciated.

 

2 Replies