Forum Discussion
F5Zan_89516
Nimbostratus
Jan 07, 2014irule not working as expected
Hi, i have a simple redirection irule which is not working . Here it is
when HTTP_REQUEST {
if { [HTTP::host] equals "cmsint-qa.abc.com/public/header.html?SiteId=GCR"}
{
HTTP::redirect "https:/...
JRahm
Admin
Jan 07, 2014HTTP::host is only the host, it doesn't include the URI.
host: cmsint-qa.abc.com path: /public/header.html uri: /public/header.html?SiteId=GCR
you'll want to split the conditions up so they'll match. You can add the host condition in there as well, but without it, something like this should work:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/public/header.html?SiteId=GCR"} {
HTTP::redirect "https://gcr-qa.abc.com/public/header.html[HTTP::uri]"
}
}
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