Forum Discussion
Habib_Ulla_Khan
Nimbostratus
Dec 20, 2017irule to replace part of uri
Hi,
Need assistance in writing irule to get below results.
http://www.zways.com/ae/en/destinations/ways-to-london.page or https://www.zways.com/en-ae/destinations/ways-to-london.page
should go to
https://www.zways.com/en/destinations/ways-to-london.html
Thanks & Regards, Habib Khan
- Samir_Jha_52506
Noctilucent
Prepared irule based on above mentioned condition but you can use other parameter also i.e
, class match etc or use existing f5 policy to match traffic.[HTTP::uri] contains "/xyx/xxx"
when HTTP_REQUEST { if { ([HTTP::uri] starts_with "/ae/en/destinations/ways-to-london.page") || ([HTTP::uri] starts_with "/en-ae/destinations/ways-to-london.page") } { HTTP::redirect "https://www.zways.com/en/destinations/ways-to-london.html" } }
let us know if any question
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