Forum Discussion
Sam_Parkes_1110
Nimbostratus
Apr 10, 2007Rewrite iRule retaining part of URI
I'm trying to write an iRule that will redirect users from one URI to another - but the parameters passed in need to be retained in the redirect. However the URI is different.
I need it to receiv...
Sam_Parkes_1110
Nimbostratus
Apr 12, 2007Hi Aaron,
Many thanks for your reply - I have tried a version of this, I think my problem is that I want to redirect the host as well as performing a string map to the URI. I've tried this:
elseif { [HTTP::uri] contains "maps.asp"} {
HTTP::redirect http://[string map {mysite.com/maps.asp myredirectedsite.com/VoucherMap.aspx} [HTTP::uri]]
log LOCAL0.info "map rewrite"
}
but cannot get it working, is this because the string map is only applied to the uri, because of the elseif?
Sam.
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
