Forum Discussion
Rajesh_74831
Nimbostratus
Aug 19, 2014Need 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...
Thomas_Gobet
Nimbostratus
Aug 19, 2014Hi Rajesh,
Here is the iRule you need, your problem was on "string map".
when HTTP_REQUEST {
if { [HTTP::uri] ends_with "/" } {
HTTP::uri [string map {"/" ""} [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