Forum Discussion
Example Irule
Hi, I try to translate a content switching rule from netscaler to F5 Irule for migration which still keeps going on.
I need a rule that if first 2 path of uri /cookies/set/xyz
then rule does 302 temp redirect to www.123.com with 3rd path string pasted to Set-cookie header member as Set-Cookie:TESTROUTER=xyz; and the rest mentioned below example.
curl -I 10.35.72.172/cookies/set/xyz
HTTP/1.1 302 Temporary Redirect
Location: http://www.gittigidiyor.com
Set-Cookie:TESTROUTER=xyz; path=/; expires=Tue, 08 Apr 2014 12:38:25 GMT; domain=.gittigidiyor.com
Any idea how can i do this? I try to do couple things but did not succeed yet
If you are on 11.4+, this sounds like a good use case for CPM (what F5 turned HTTP classes into). https://devcentral.f5.com/questions/v114-replacement-for-httpclass-select-
Recent Discussions
Related Content
* 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