Forum Discussion
tiwang_122270
Nimbostratus
Mar 05, 2014need help to simple redirect and whitelist of uri
hi out there
I have a few small problems whereto I need a bit help - first I need to ensure that when a client visits a given site he will be directed to only one uri - eg:
external is we launch...
Kevin_Stewart
Employee
Mar 05, 2014Try this:
(string-based) Date group:
ltm data-group internal my_allowed_uris {
records {
/webservice1.aspx { }
/webservice2.aspx { }
}
}
iRule:
when HTTP_REQUEST {
if { ( [HTTP::uri] equals "/" ) or ( [class match [string tolower [HTTP::uri]] starts_with my_allowed_uris] ) } {
if { [HTTP::uri] equals "/" } {
HTTP::uri "/webconnect"
}
return
} else {
reject
}
}
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