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...
JG
Cumulonimbus
Jun 26, 2019Or better still change it to use "HTTP::path" instead:
when HTTP_REQUEST {
if { [HTTP::path] ends_with "//" } {
set new_path [string trimright [HTTP::path] '/']
HTTP::path "$new_path/"
}
if { [HTTP::path] equals "/" } {
HTTP::redirect "https://[HTTP::host]/web/guest/cna/home"
}
}- Ravi_KakranJun 27, 2019
Nimbostratus
Sorry JG, even this above did not work. Error while executing scenario, screenshot attached.
Please do the needful and thank you for your help.
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
