Forum Discussion
Wes_98712
Nimbostratus
Nov 09, 2005undefined procedure: elseif
Ok,
This conversion process is killing me, I almost had a good chunk of my v4.X converted, and working (meaning my 3400 series LB wasn't rebooting...good thing). Now I have a strange issue, ...
Wes_98712
Nimbostratus
Nov 09, 2005FYI: If anyone is interested I fixed this by reformatting the code as follows:
when HTTP_REQUEST {
set my_uri [HTTP::uri]
set my_query [HTTP::query]
if { [HTTP::host] equals "soaringdreams.ameriquest.com"} {
HTTP::respond 301 "Location" "http://www.ameriquestsoaringdreams.com"
} elseif { $my_uri contains "texas" } {
HTTP::respond 301 "Location" "http://www.ameriquestmortgage.com/index.html?ad=texasfair"
} elseif { $my_uri matches_regex "cfide" } {
discard
} elseif { $my_uri starts_with "/Amigo"} {
HTTP::respond 301 "Location" "http://www.ameriquestmortgage.com/sweepStakes/showRegistration.html?lang=es&ad=LMAMIGO"
} elseif { $my_uri starts_with "/LuisMiguelFriend"} {
HTTP::respond
}
}
seems the TCL engine is kind of whitespace sensitive, not good...really not good...it makes the whole entire process too **bleep** complicated.
-Wes
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
