Forum Discussion
JeffRay_129268
Nimbostratus
May 26, 2015irule issue
Hi Forum,
I am having one issue of syntax, i have already an irule available for 2 requirements (1 and 2 below) which is working fine. Issue is i need to incorporate solution for the 3rd requirement ...
JeffRay_129268
Nimbostratus
Jun 10, 2015Thanks Claudio for your excellent response. I have not tested it yet since waiting for change approval as soon as it is done will be able to test it. Meanwhile i have just one question that how can i incorporate my existing below switch rule in above mentioned rule or if not feasible then how to achieve below requirement in if else above statement.
switch -glob [string tolower [HTTP::uri]] {
"/gr/mypage.xml*" {
set find "/gr/mypage.xml"
set replace "/gr-mypage.xml"
HTTP::uri [ string map -nocase "$find $replace" [HTTP::uri]]
set rewrite 1 }
"/fr/mypage.xml*" {
set find "/fr/mypage.xml"
set replace "/fr-sitemap.xml"
HTTP::uri [ string map -nocase "$find $replace" [HTTP::uri]]
set rewrite 1 }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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