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"][]- Michael_JenkinsJan 30, 2015
Cirrostratus
sorry. typo in my code. I updated it now if you want to try again. - TSV_166665Jan 30, 2015
Nimbostratus
It's working. Thank Michael J very much. - Michael_JenkinsJan 31, 2015
Cirrostratus
Please mark the answer as the solution so others can see it's solved.
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