Forum Discussion
arczi45_305574
Nimbostratus
Jun 02, 2017Irule redirection based on /value
Hi;
I have to write an irule to redirect a traffic to new URL based on special value from old URL.
For example:
I have this URL https://website.com/otcsEN/livelink.exe/Open/162269 , at...
Jun 02, 2017
Or something like this, which also takes into account the hostname.
when HTTP_REQUEST {
if { ([HTTP::host] equals "website.com") && ([scan [HTTP::uri] {/otcsEN/livelink.exe/Open/%s} string1 ] == 1) } {
HTTP::redirect "https://website2.com/_layouts/15/sharepoint.aspx?q=IDMSObject%3A${string1}&v=search"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
