Forum Discussion
F5Zan_89516
Nimbostratus
Dec 23, 2013irules redirection and something extra
I have a requirement for creating an irule which will add the site id to the forwarded url on https
The iRule should redirect requests for
cmsint-qa.abc.com/public/header.html?SiteId=GCR
To...
Kevin_Stewart
Employee
Dec 23, 2013How about something like this:
when HTTP_REQUEST {
if { not ( [URI::query [string tolower [HTTP::uri]] siteid] equals "" ) } {
set siteid [URI::query [string tolower [HTTP::uri]] siteid]
HTTP::redirect "https://${siteid}-qa.abc.com/public/header.html"
}
}
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