Forum Discussion
arripay_6298
Nimbostratus
Jun 28, 2016Redirect Problem
Hi,
using a single and pool with multiple hosts, trying to do a redirect based on host name and uri match using the following.
when HTTP_REQUEST {
log local0. "Request: [HTTP::host][HTTP::ur...
arripay_6298
Nimbostratus
Jun 29, 2016Hi guys, seem to have it working, I think I needed a more exact match on the uri, thanks to THi for your assistance, most certainly helped!
when HTTP_REQUEST {
log local0. "Request: [HTTP::host][HTTP::uri]"
if {([HTTP::uri] ends_with "/app/commission/commission-submission.html") or
([HTTP::uri] ends_with "/app/classmanagement/class-management.html") or
([HTTP::uri] ends_with "/app/classticket/ticket-search-template.html") or
([HTTP::uri] ends_with "/app/trainer/trainer.html") or
([HTTP::uri] ends_with "/app/target/target.html") or
([HTTP::uri] ends_with "/app/target/target-setup-country.html") or
([HTTP::uri] ends_with "/app/studio/studio.html") }
{
HTTP::redirect "https://[HTTP::host]/app/shared/restricted.html"
}
}
- THiJun 29, 2016
Nimbostratus
you're welcome, arripay
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