Forum Discussion
Gill_32697
Nimbostratus
May 30, 2013help with url redirect
I had to create two separate VIPs due to SSL Certs. VIP1 work fine and redirect pool member as it should. VIP2 is using a different url, I need it to be redirected to a new url which is the VIP1 as l...
Arie
Altostratus
May 30, 2013
switch [string tolower [HTTP::path]] {
/guest { HTTP::redirect https://ptotime.mycomp.com/quest }
default { HTTP::respond 200 content "no such service" }
}
Couple of things to keep in mind:
1) If you're using the same VIP for multiple domains you'll have to include a check for the right one(s).
2) The above won't catch requests to ptotime.mycomp.com/quest/ or ptotime.mycomp.com/quest/default.html (or whatever default page the app uses). However, both would be considered valid requests from the developer's perspective.
3) I'd consider using an HTTP Response Code other than 200 (OK), since "no such service" is not OK.
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