Forum Discussion
Gill_32697
Nimbostratus
May 03, 2013Help simple irule
Hello, need best way to contruct a simple irule but that will allow me to add uri paths as the become active, what i have now is...
Im already doing a basic https redirect
HTTPS VIP is 10....
Kevin_Stewart
Employee
May 03, 2013Well, the easiest thing to do would be to just redirect the user (any user) to /pod5 if they didn't include it.
when HTTP_REQUEST {
if { not ( [string tolower [HTTP::uri]] starts_with "/pod5" ) } {
HTTP::redirect "https://[HTTP::host]/pod5[HTTP::uri]"
}
}
That would work for /pod5, but not sure how you'd know which pod to send a user to in the absence of some trigger value.
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