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...
jbergeron_10592
Nimbostratus
Jan 25, 2008The first one works...but the one I tried naturally didn't...I have somewhat of an inverse Midas touch these days...
Your help would be appreciated.
when HTTP_REQUEST {
if {not ([HTTP::host] equals "www.xyzfree.net") } {
if { ([HTTP::host] equals "www.xyzfree.com") } {
HTTP::redirect "http://www.xyz.com/"
} elseif { ([HTTP::host] equals "www.freexyz.com") \
or ([HTTP::host] equals "www.freexyz.net") } {
HTTP::redirect "http://www.xyz.com/"
} else { HTTP::redirect http://www.xyzfree.net/[HTTP::uri] }
} else { pool xyzFree }
}
Thanks,
JB
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