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...
What_Lies_Bene1
Oct 11, 2012Cirrostratus
OK, so for the port 80 only Virtual Server iRule you should change it to this. I've ignored nitass's tidy up as I'm not sure how to add the third match in the way he's done the first two, he may be able to create a simpler rule;
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/" {
HTTP::redirect " https://resetmypasswordqa/itim/self/Login/Logon.do"
}
"/itim/self" {
HTTP::redirect " https://resetmypasswordqa/itim/self/Login/Logon.do"
}
"/resetmypassword/itim/self/Login/Logon.do " {
HTTP::redirect " https://resetmypasswordqa/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