Redirect Failure for iRule
I am trying to work out why my iRule fails for one specific redirect whereas everything else works.
Any assistance or advise would be appreciated.
Http://testssl.communigatormail.co.uk/Common/Images/map.gif Redirect to :https://testssl.communigatormail.co.uk/Login/Common/Images/map.gif
when HTTP_REQUEST { if { [HTTP::host] eq "testssl.communigatormail.co.uk" } { switch [string tolower [HTTP::path]] { "/" { HTTP::redirect "https://testssl.communigator.co.uk/login" } default { HTTP::redirect "https://testssl.communigator.co.uk/[HTTP::uri]" } } } elseif { [HTTP::host] eq "testssl.communigatormail.co.uk" } { switch -glob [string tolower [HTTP::path]] { "/Common/" { HTTP::redirect "https://testssl.communigator.co.uk[HTTP::uri]" } } } elseif { [HTTP::host] eq "testssl.communigator.co.uk" } { switch -glob [string tolower [HTTP::path]] { "/login/" - "/lz/*" { HTTP::redirect "https://testssl.communigator.co.uk[HTTP::uri]" } } } }