Forum Discussion

MFS_324204's avatar
MFS_324204
Icon for Nimbostratus rankNimbostratus
Aug 02, 2018

Debugging @ figuring out why suddenly an iRule doesn't work

Hi,

Any hint or pointers how to dig this further?

Below is sample iRule being use....it's actually to redirect http website to https version... only 1 doesn't work......the other 3 ok

when HTTP_REQUEST {

if {[HTTP::host] equals "www.websiteA.com"} {
   HTTP::redirect "https://www.websiteA.com"
   }
if {[HTTP::host] equals "websiteA.com"} {
   HTTP::redirect "https://www.websiteA.com"
   }
if {[HTTP::host] equals "www.websiteB.com"} {
   HTTP::redirect "https://www.websiteB.com"
   }
if {[HTTP::host] equals "websiteB.com"} {
   HTTP::redirect "https://www.websiteB.com"
   }
}

Only redirect request from websiteA.com failed

others than that all these below OK, successfully redirected to their https version...

wwww.websiteA.com websiteB.com

No RepliesBe the first to reply