Forum Discussion
Joe_Pipitone
Nimbostratus
Jul 29, 2010[SOLVED] iRule redirect loop problem
I have an iRule which is only partially working. Can anyone tell me why putting the following in place results in a redirect loop? It does the job partially by stripping the www, however if you try ...
Chris_Miller
Altostratus
Jul 29, 2010Unless I'm missing something - this would do this in a much easier fashion.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/salarysurvey" -
"/salarysurvey/" -
"/salarysurveys" -
"/salarysurveys/" { HTTP::redirect "http://oursite.com/salarysurveys/" }
"/images*" { "http:://legacy.oursite.com[HTTP::uri]" } }
if { [HTTP::host] eq "www.oursite.com" } {
HTTP::redirect "http://oursite.com[HTTP::uri]" }
}
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
