Forum Discussion
NhatMinh-TSV_18
Nimbostratus
Jan 28, 2015Convert rule on Apache to iRule
Hi all,
I have a customer using apache to load balancing, on this device, they have a rule
^/thongtin/([0-9]+)/(.*)/?$ /wps/portal/abc/newsdetails?newsId=$1 [L,PT]
Plz help me to change ...
Michael_Jenkins
Cirrostratus
Jan 30, 2015So, with regexp, you could use an expression like:
if {[regexp {^/thongtin/([0-9]+)/.*/?$} [string tolower [HTTP::uri]] match id]} {
HTTP::redirect "/wps/portal/abc/newsdetails?newsId=$id"
}
I'll try to put together the
scan version later.Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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