Jeff_46763
Sep 11, 2012Nimbostratus
Redirect Irule for wildcard URL's
Hi all, Im working on creating an Irule for a URL that I want anything that ends in .dmz.com and .com to go to a certain URL. I attemped doing a .*, but that didn't work so well. Here's what I have if someone could please help. Im looking to redirect anything ending in .com and .lb-devdmz.abbott.com to go to the below URL.....Appreciate it.
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] ends_with ".com"} {
HTTP::redirect "]"
}
}