Forum Discussion
F5-KHAN
Nimbostratus
Jun 27, 2019irule to remove part of uri and combine uri
Hi All, I am looking for irule to achieve below result. 1. stg.gr.com/content/ga/en/page.html --- content uri should be removed and ga/en should merged in form of /en-ga/ to be 301 redi...
Stanislas_Piro2
Cumulonimbus
Jun 28, 2019Try this code:
when HTTP_REQUEST {
if {[scan $uri {/content/%[^/]/%[^/]/%s} language1 language2 other] == 3 } {
HTTP::respond 301 Location "/$language2-$language1/$other"
}
}
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