Forum Discussion
Dixit_18200
Nimbostratus
Aug 13, 2009Issue with irule in 9.4.7
Hi All,
We are having issues with irules created on 9.4.7. Below is the iruel we have added. But its not working. Please help.
when HTTP_REQUEST {
if {[HTTP::request] contains "www.acbg.com/ucc"} {
HTTP::redirect "https://microsite.accenture.com/ACBG/Solutions/UCandC/Pages/default.aspx"
}
}
- The_Bhattman
Nimbostratus
My suggestion is to perform a debugwhen HTTP_REQUEST { log local0. "This is the full Request: [HTTP::request]" if {[HTTP::request] contains "www.acbg.com/ucc"} { HTTP::redirect "https://microsite.accenture.com/ACBG/Solutions/UCandC/Pages/default.aspx" } }
when HTTP_REQUEST { if {([HTTP::host] eq "www.adbg.com") and ([HTTP::uri] equals "/ucc") } { HTTP::redirect "https://microsite.accenture.com/ACBG/Solutions/UCandC/Pages/default.aspx } }
- hoolio
Cirrostratus
Checking the entire collection of request headers with HTTP::request will be less efficient. As cmbhatt suggests, the second option of checking the host and URI would be better. If it's an IIS based web app, you should also set the URI to lower case before checking it against the "/ucc" string. - Dixit_18200
Nimbostratus
Hi Aron/CB,
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