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...
PacketHead_4009
Nimbostratus
Nov 04, 2010Ok, let me take a step back. Looks like it is looping. So my main VIP/site is www.mysite.com
If I just do your basic URL as follows:
when HTTP_REQUEST {
switch -glob [HTTP::path] {
"/user/manpage/home/homesite.htm" -
default {
HTTP::redirect http://www.mysite.com
}
}
}
I get a browser error stating the page it going in a redirect loop. Please note that I changed the "/user/manpage/home/*" wildcard to a specific file in that directory if that makes a difference.
Any ideas? If I redirect it to a page other than the VIP/site, the redirect works fine.
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