Forum Discussion
lbong_53781
Nimbostratus
Oct 24, 2008URI insertion
Hi
I am trying to do the following and not sure how it can be done in iRule.
http://somehost.com/new?custid=12345 redirect to http://somehost.com/goto?id=345678&custid=...
hwidjaja_37598
Altostratus
Oct 25, 2008try this out:
when HTTP_REQUEST {
if { not ([HTTP::uri] starts_with "/goto") } {
regsub {.+\?} [HTTP::uri] {/goto?id=345678\&} newUri
HTTP::redirect "$newUri"
}
}
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