one rewrite url works and another does not.
Hello
I have written an iRule script to rewrite a url based on a condition-
http://intfilings.abc.gov/navigator_icm/?desktop=xyz should rewrite to
http://intfilings.abc.gov/EFilingWeb/ManageTicklers should rewrite to
Here is the iRule script- When HTTP_REQUEST { if { [HTTP::header host] equals "intfilings.abc.gov" && [HTTP::header uri] starts_with "/navigator_icm" } { HTTP::header replace Host "server1.ct.gov:9081" } if { [HTTP::header host] equals "intfilings.abc.gov" && [HTTP::header uri] starts_with "/EFilingWeb" } { HTTP::header replace Host "server2.ct.gov:9080" }
}
Whichever URL i click on first works and then the other does not.