Forum Discussion
GFort_32452
Oct 09, 2012Nimbostratus
Need help writing irules
I am new to wriitng irules and was needing some help. I need to write an irule that will redirect the following
https://resetmypasswordqa/itim/self
https://resetmypasswordqa
http://r...
GFort_32452
Oct 12, 2012Nimbostratus
This is currently what the irule looks like, for some reason it acts like it does not read the " /resetmypassword/itim/self/Login/Logon.do" and do the redirect. The other lines seem to work fine. I have even tried "/itim/self/Login/Logon.do" and it still does not redirect. Just for testing I did a redirect to http://www.google.com and all of them redirected with the exception of }
"/resetmypassword/itim/self/Login/Logon.do" {
HTTP::redirect " https://resetmypassword.okdhs.int/itim/self/Login/Logon.do"
}
Below is the current configuration of the irule.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/" {
HTTP::redirect " https://resetmypassword.okdhs.int/itim/self/Login/Logon.do"
}
"/itim/self" {
HTTP::redirect " https://resetmypassword.okdhs.int/itim/self/Login/Logon.do"
}
"/resetmypassword/itim/self/Login/Logon.do" {
HTTP::redirect " https://resetmypassword.okdhs.int/itim/self/Login/Logon.do"
}
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects