Forum Discussion
PowerShellDon_1
Nimbostratus
Apr 24, 2017iRule 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=NNN...
Leonardo_Souza
Cirrocumulus
Apr 24, 2017You can use a URI::query to get a parameter value:
https://devcentral.f5.com/wiki/iRules.uri__query.ashx
Use the class command to work with a datagroup:
https://devcentral.f5.com/wiki/irules.class.ashx
Both links have iRules examples at the end of the page, so you just need to take the code part you need and create your iRule.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects