Forum Discussion
Paul_Lueders
Altostratus
Sep 04, 2019iRule 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....
Sep 04, 2019
Hi Paul,
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/test" -
"/abc" -
"/xyz" {
HTTP::uri "[HTTP::uri]/"
# log local0. "new uri = [HTTP::uri]"
}
}
}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
