Forum Discussion
Mayur_Sutare
Apr 01, 2020MVP
make sure you have new iRule above existing iRule. Also if it is already there, then it seems end statements is not getting matched.
One question here,
is URI 'DetailJob.aspx?Mod=search&CatId=21&job=1029042&Lang=vi' is same all the time?
If yes, then may be you can try below iRule. It is working fine. I've tested it in my lab setup.
when HTTP_REQUEST {
if {[HTTP::host] equals "test.abc.com" and [HTTP::uri] equals "/DetailJob.aspx?Mod=search&CatId=21&job=1029042&Lang=vi"} {
HTTP::redirect "https://test.abc.com"
}
}