Forum Discussion
Rajesh_74831
Aug 19, 2014Nimbostratus
Need to delete extra "/" in the URI
Hi Guys,
Our developers found an issue where the page is getting 404 error when there is an additional "/" at the end of the page. So I am thinking of an irule which would remove the addition...
Yann_Desmarest
Aug 19, 2014Cirrus
Hi,
I suggest you to use this example code below :
when HTTP_REQUEST {
if { [HTTP::uri] ends_with "/" } {
HTTP::uri [string trimright [HTTP::uri] "/"]
}
}
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