Forum Discussion
Paul_Lueders
Sep 04, 2019Altostratus
iRule redirect with out trailing slash
I am trying to create an iRule that will redirect https://www.test.com/test to https://www.test.com/test/. I do not seem to be able to get the url without the trailing slash to redirect to the page.
Hi Paul,
when HTTP_REQUEST { switch -glob [HTTP::uri] { "/test" - "/abc" - "/xyz" { HTTP::uri "[HTTP::uri]/" # log local0. "new 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