Forum Discussion
jbergeron_10592
Nimbostratus
Jan 24, 2008Unable to make this work - Help Please
Good Morning -
Where am I going wrong? After struggling through this for the past 3 days, I am at my wits end. We are trying to convert our 4.5 rules to 9.4 and to this point have been co...
JRahm
Admin
Jan 25, 2008I think this is what you're after in the same context as your v4 rule:
when HTTP_REQUEST {
if { not ([HTTP::host] eq "www.xyzfree.net") } {
if { ([HTTP::host] eq "www.xyzfree.com") \
or ([HTTP::host] eq "www.freexyz.com") \
or ([HTTP::host] eq "www.freexyz.net") } {
HTTP::redirect http://www.xyz.com
} else { HTTP::redirect http://www.xyzfree.net/[HTTP::uri] }
}
else { pool xyzFree }
}Check through the logic, but I think this is the same thing, only a little more readable (to me):
when HTTP_REQUEST {
if { [HTTP::host] eq "www.xyzfree.net" } {
pool xyzFree
} elseif { ([HTTP::host] eq "www.xyzfree.com") \
or ([HTTP::host] eq "www.freexyz.com") \
or ([HTTP::host] eq "www.freexyz.net") } {
HTTP::redirect http://www.xyz.com
} else { HTTP::redirect http://www.xyzfree.net/[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