Forum Discussion
zeesh86_123075
Jun 13, 2014Nimbostratus
irule performance issue
We recently got bought out and I had to redirect about 800 URI's. I wrote three irules to accomplish this because I was crossing the character limit for each irule. I noticed that the website took qu...
- Jun 13, 2014
You should be using data classes for this task. Something similar to..
when HTTP_REQUEST { if {[class match [HTTP::uri] equals myclass]} { HTTP::redirect [class match -value [HTTP::uri] equals myclass] } }
Then define a string data class with your redirect requirements.
Name Value /home http://newhome.host.com/home /home2 http://otherhome.host.com
Kevin_Davies_40
Jun 13, 2014Nacreous
You should be using data classes for this task. Something similar to..
when HTTP_REQUEST {
if {[class match [HTTP::uri] equals myclass]} {
HTTP::redirect [class match -value [HTTP::uri] equals myclass]
}
}
Then define a string data class with your redirect requirements.
Name Value
/home http://newhome.host.com/home
/home2 http://otherhome.host.com
- Kevin_Davies_40Jun 13, 2014NacreousThis can be easily adapted for hosts, use [HTTP::host] instead of [HTTP::uri] and the name in the data class becomes the host name. Also we used the matching expression "equals"... there is also starts_with, ends_with and contains for more flexibility.
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