Forum Discussion
Lucas_Thompson_
Historic F5 Account
Clientless-mode (if it's inserted) will cause the 302 to /my.policy to NOT occur. So if you're seeing that, then your header insert isn't working for some reason. The lack of a host header in the client request may be interfering also.
Try using this command on the connection along with your header insert, and add a log statement to make sure it's executing:
https://devcentral.f5.com/wiki/iRules.ACCESS__restrict_irule_events.ashx
Bala_128530
Oct 29, 2015Nimbostratus
when CLIENT_ACCEPTED {
ACCESS::restrict_irule_events disable
}
when HTTP_REQUEST {
HTTP::header insert "clientless-mode" 1
if { [HTTP::uri] ends_with "/my.logout.php3?errorcode=19" }{
HTTP::redirect "https://mysite.com/DWeb/Settings/CommonImages/Branding.xml"
log local0. ": site redirected"
}
}