Forum Discussion
Ted_Smith_11168
Nimbostratus
Dec 17, 2005Newbie needs help
I need help with a rule. I set some cookie values and compare them-this part is woking fine. If the cokkie check is valid, I then want to check the uri. If the uri starts with/contains agencyctr I wa...
Ted_Smith_11168
Nimbostratus
Dec 17, 2005Update:
I think I solved my own problem...
when CLIENT_ACCEPTED {
set ckname aac1
set ckvalue [IP::client_addr]
set ckdomain .alliedinsurance.com
}
when HTTP_REQUEST {
set uri [HTTP::uri]
set host [HTTP::host]
set new_uri /center/templates/welcome.cfm
set new_url $host$new_uri
if {[HTTP::cookie exists $ckname]} {
if { $uri contains "agencyctr" } {
HTTP::redirect https://$new_url
} else {
pool Shared
}
} else {
HTTP::redirect "https://aac.alliedinsurance.com$uri"
}
}
Thanks!!
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
