Forum Discussion
0_173149
Nimbostratus
Apr 29, 2016Using wildcards in uri redirection in iRules
I currently have
when HTTP_REQUEST {
if { [HTTP::path] equals "/" } {
HTTP::redirect "/toplevel/src/main/webapp/project.html"
}
}
I need to make it so I can use the subdirectory as a star...
0_173149
Nimbostratus
May 06, 2016OK -- since I got no feedback - and figured this out - I'll add what I did in case someone else finds themselves in the same problem --
Basically if they don't send the complete url - I'm separating the PATH and the URI an updating it that way.
If anyone has a better suggestion - type in 🙂
thanks
when HTTP_REQUEST {
if { not ( [HTTP::uri] contains "." ) } {
HTTP::uri [HTTP::uri]/src/main/webapp/Project.html
HTTP::redirect [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