Forum Discussion
PacketHead_4009
Nimbostratus
Nov 04, 2010URI Redirect to main page
Hello,
I have a few iRules that do something similar to what I am looking for but not specifically what I am trying to do.
Basically I have a VIP for www.mysite.com. I have some o...
George_Watkins_
Nov 04, 2010Historic F5 Account
Hi James,
The hyphens just say, "drop through to the next action." In this case it will drop all the way through to the default action, which is redirect to http://www.mysite.com. If you want to redirect on a specific URL, do this:
when HTTP_REQUEST {
switch -glob [HTTP::path] {
"/admins/manpage/tools/*" { HTTP::redirect http://www.mysite.com/tools/new }
"/user/manpage/home/*" -
default {
HTTP::redirect http://www.mysite.com
}
}
}
Does that help?
-George
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