Forum Discussion
dgeorgeson_2230
Nimbostratus
Jul 29, 2011Replacing the beginning of the URI if entire URI is not explicitly allowed
New to the forum and may have bitten off more than I can chew for a newbie.
I need to create an iRule that meets the following criteria:
if HOST = "www.domain.c...
dgeorgeson_2230
Nimbostratus
Jul 29, 2011I simplified things a bit which I believe still meets my objective. Since I have a small list of specific URI to not redirect, I rewrote the irule thus
set STAYURI {"/subdirectory/checkout.aspx" "/subdirectory/orderhistory.aspx"}
if { [HTTP::host] equals "www.domain.com" } {
if {foreach x $STAYURI {
[string tolower [HTTP::uri]] not equals x} {
HTTP::uri "/newplace[string range $uri 13 end]"
}
}
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