Forum Discussion
Ed_Lane_26850
Mar 01, 2011Nimbostratus
I need to redirect uri to folder of /lola and not display that in the uri.
I have the following irule and I need to redirect to the folder lola but hide it from the customers uri.
when HTTP_REQUEST {
if { ([HTTP::uri] equals "/guest?brand=p&studio=P&activityid=portraits")
or ([HTTP::uri] equals "/guestservices?brand=p&activityid=portraits")
or ([HTTP::uri] equals "/studio?brand=p&studio=P444&activityid=portraits")} {
HTTP::redirect "/lola[HTTP::uri]"
}
}
- Chris_MillerAltostratusIt sounds like you don't want a redirect, but actually want the append /lola to the request between the LTM and the Pool Member?
when HTTP_REQUEST { switch - glob [string tolower [HTTP::uri]] { "/guest?brand=p&studio=p&activityid=portraits" - "/guestservices?brand=p&activityid=portraits" - "/studio?brand=p&studio=p444&activityid=portraits" { HTTP::uri "/lola/[HTTP::uri]" } } }
- hooleylistCirrostratusChris, great example as always.
- Chris_MillerAltostratusPosted By hoolio on 03/01/2011 03:03 PM
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