andrew_deackes_
Jul 16, 2014Nimbostratus
matches_regex replacement
Hi,
we are using an i-rule to perform some redirects for a site. A recent addition to the rule doesn't appear to be working as we wanted it and I'm aware matches_regex is not the best solution so how can we replace this:
elseif { $uri matches_regex {^/(uk|test|news|marketing)/.*/$ }} {
HTTP::respond 301 Location "https://www.company.com[HTTP::uri]default.page"
any advice appreciated.
thanks
A