Forum Discussion
Jeremy_Dorrough
Nimbostratus
Jan 25, 2007trailing slash
Could someone please help me create an irule that will add a forward slash to the end of a url if not already there?
https://www.somesite.com/directory --> https://www.somesite.com/directory/
thanks in advance for any input
- Give this a shot:
when HTTP_REQUEST { if { !([HTTP::uri] ends_with "/") } { HTTP::uri "[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