Forum Discussion
owaters_69636
Nimbostratus
Oct 24, 2009Redirect iRule Help
I am trying to redirect http://weatheri.cme.com:443 to http://datasuite.cme.com and I have been unable to figure out the right iRule for this. I was using the following iRule but this doesnt seem to d...
L4L7_53191
Nimbostratus
Oct 26, 2009Your redirect really does look like it should work. For example:
when HTTP_REQUEST {
if { [HTTP::host] eq "192.168.1.100:8080"}{
HTTP::redirect "http://www.python.org"
}
}
Works fine. One side note though, in case you're running into it (it doesn't look like it): if you use single ticks around your redirect location, for example 'http://www.python.org' I was able to cause a redirect loop because it was interpreted as a relative redirect and the literal string was appended onto the end of the original [HTTP::host] header:
http://192.168.1.100:8080/%27http://%27http://%27http://www.python.org%27
Could you capture home headers and post them?
-Matt
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
