satish_txt_2254
Nov 01, 2017Cirrus
iRules base on URL matching
I have following irules and its working but now i have requirement to match URL developers and developer (without "s") so how do i match that string? also i want to redirect developers.vivox.com (both without s) to http to https so i don't know where do i put that rule in following code?
when HTTP_REQUEST {
log local0. "client: [IP::remote_addr] -> [HTTP::host][HTTP::uri]"
if { [string tolower [HTTP::host]] equals "developers.example.com"}{
pool DEV_pool
}
else {
pool QA_pool
}
}