Forum Discussion
Joe_Pipitone
Nimbostratus
Nov 12, 2009Case insensitive redirects not quite working
I have an iRule that is supposed to do simple redirection if someone types in the following:
http://www.ourdomain.org/LV2010 or http://www.ourdomain.com/lv2010
It see...
The_Bhattman
Nimbostratus
Nov 16, 2009You might want switch from IF to "switch"
switch -glob [string tolower [HTTP::uri]] {
"/lv2010/instructors*" { HTTP::redirect "http://events.ourdomain.org/events/some-other-page-conference-2010/speakers/speaker-list.aspx" }
"/lv2010/hotel*" { HTTP::redirect "http://events.ourdomain.org/events/some-other-page-conference-2010/information/hotel-and-travel.aspx" }
"/lv2010/register*" { HTTP::redirect "http://events.ourdomain.org/events/some-other-page-conference-2010/information/registration.aspx" }
"/lv2010/fax*" { HTTP::redirect "http://events.ourdomain.org/events/some-other-page-conference-2010/information/registration.aspx" }
"/lasvegas10*" { HTTP::redirect "http://events.ourdomain.org/events/some-other-page-conference-2010/home.aspx" }
"/lasvegas2010*" { HTTP::redirect "http://events.ourdomain.org/events/some-other-page-conference-2010/home.aspx" }
"/lv2010/es/register*" { HTTP::redirect "http://events.ourdomain.org/events/some-executive-page-2010/information/registration.aspx" }
"/lv2010/es/hotel*" { HTTP::redirect "http://events.ourdomain.org/events/some-executive-page-2010/information/hotel-and-travel.aspx" }
"/lv2010/es/qualify*" { HTTP::redirect "http://events.ourdomain.org/events/some-executive-page-2010/information/qualification.aspx" }
"/lv2010*" { HTTP::redirect "http://events.ourdomain.org/events/some-other-page-conference-2010/home.aspx" }
}
CB
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
