Forum Discussion
Perch_261628
Nimbostratus
Apr 28, 2016iRule question?
I'm trying to write an iRule that take a shorter URL and expand it while adding the last 9 characters to the end of it.
So as an example when someone browses to:
http://website.ca/admn/0123...
Yann_Desmarest
Cirrus
Apr 29, 2016Hello,
Maybe an irule that the below one can fit your needs :
when HTTP_REQUEST {
set uri [HTTP::uri]
switch -glob [string tolower [HTTP::uri] ] {
"/admn/" {
HTTP::uri "/AppXtender/ISubmitQuery.aspx?DataSource=BPROD&appname=UM-S-ADMN&ID=[getfield [HTTP::path] \"/\" 2]"
}
}
}
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