SathishF5Dasam
Jun 04, 2016Nimbostratus
Regex to irule
Hi All,
I'm new to Irule and find difficult to migrate this regex into irule
Regex RewriteRule ^/company/(.*)(?http://www.test.com/company/$1/en_gb [R=301,L]
My config
"/company/*" { HTTP::redirect "http://www.test.com[HTTP::uri]en_gb"
Condition: if Uri matched "/company/*"(wildcard) then the suffix "/en_gb" should added for all company starting uri
Ex: /company/auto ---> company/auto/en_gb
/company/bike ---> company/bike/en_gb
many webpages have same condition looking,
appreciate irule coders.