Forum Discussion
SteveVernau_132
Nimbostratus
May 08, 2014infinite redirect irule using http::redirect
The problem with this irule is the bit that redirects careers.mysite.com.au to www.mysite.com.au/about-us/Working-With-Us
(ignore the rest, it all works fine)
You end up having the browser go to http...
Kevin_Stewart
Employee
May 08, 2014First guess is that the browser thinks your redirect is a relative URI. Try this:
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
set host [string tolower [HTTP::host]]
if { $host equals "careers.mysite.com.au" } {
HTTP::redirect "http://www.mysite.com.au/about-us/Working-With-Us"
} elseif { $uri contains "health-insurance/online-services" } {
pool www.mysite.com.au-tst-oms-http80-pol
} elseif { $uri contains "providerportal" } {
pool www.mysite.com.au-tst-pportal-http80-pol
} else {
pool www.mysite.com.au-tst-sitecore-http80-pol
}
}
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