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 ...
TSV_166665
Nimbostratus
Jan 30, 2015When I use iRule
when HTTP_REQUEST
{if {[regexp {^/thongtin/([0-9]+)/(._)/?$} [string tolower [HTTP::uri]] match id]} HTTP::redirect "/wps/portal/abc/newsdetails?newsId=$id"}I received a error:
01070151:3: Rule [/Common/aBC] error: /Common/aBC:2: error: [missing a script after "if"][]TSV_166665
Nimbostratus
Jan 30, 2015It's working. Thank Michael J very much.
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