Forum Discussion
Bob_H__117248
Nimbostratus
Sep 24, 2013Using iRules for Redirects with strings
I'm looking for a way to redirect as follows:
http://mytraining.site.com?_cid=xxxxx
redirecting to
http://www.site.com/training/index.htm?_cid=xxxxx
The xxxxx is a variety of numbers.
Righ...
Kevin_Stewart
Employee
Sep 24, 2013Something like this maybe:
when HTTP_REQUEST {
set query ""
if { [URI::query [HTTP::uri] _cid] ne "" } {
set query "?_cid=[URI::query [HTTP::uri] _cid]"
}
HTTP::redirect "http://www.site.com/training/index.htm${query}"
}
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