Mike_Graston_10
Jan 26, 2007Nimbostratus
Adding a uri if one doesn't exist
Currently I have a url split between several pools depending on uri portion. How would I modify the Irule to insert a uri if none is present?Any help would be appreciated...
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/abc"} {
pool mywebsite.com-abc
}
elseif { [string tolower [HTTP::uri]] starts_with "/def"} {
pool mywebsite.com-def
}
else {
pool mywebsite.com-ghi
}
}
Now if it request comes in with just the url domain name and does not have a /* after it I want to add the /ghi/ to it?
Sort of stumped but does appear to seem it would be too difficult to do????