Forum Discussion
mika
Cirrus
Jul 27, 2020regular-expression-http-uri rediriction
HELLO,
-http://www.abc.com/C1234" >>> I want to match on http://www.abc.com/xyz/qsdf=C1234
-http://www.abc.com/C4536" >>> I want to match on http://www.abc.com/xyz/qsdf=C4536
-http://www.abc.com/C7865" >>> I want to match on http://www.abc.com/xyz/qsdf=C7865
......
anything numbers after /C
thank you for your answer
Hi mika,
when HTTP_REQUEST { if { [HTTP::uri] matches_regex {\/C[0-9]{1,4}} } { set uri "/xyz/qsdf=[string trimleft [HTTP::uri] \"/\"]" # log local0. "newUri: $uri" HTTP::redirect "http://www.abc.com$uri" } }
- mika
Cirrus
thank you :)
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