Forum Discussion
Ravi_Kakran
Nimbostratus
Jun 20, 2019IRule condtion for one mor more slashes in URL
Hi, I am working on website where we use F5 server to set some irules for application URLs. Recently we noticed that application URL is breaking if we put more than one forward slashes (/) at t...
Rob2
Nimbostratus
Jun 21, 2019I'm not exactly sure of your requirement but another idea and very quick to handle double // at end of URI without if constructs, string functions...
when HTTP_REQUEST {
# replaces // at end of URI with / if present
HTTP::uri [regsub "\//$" [HTTP::uri] "/"]
HTTP::redirect "https://[HTTP::host]/web/guest/cna/home"
}- Ravi_KakranJun 27, 2019
Nimbostratus
Hi Rob,
As requested, can yo please advise what should be the right syntax for suggested irule as this rule is showing syntax error. Please do the needful... thanks.
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
