Forum Discussion
mimino_136976
Nimbostratus
Nov 04, 2013iRule redirect when 404
Hi, I'm using BIG-IP (trial version). In internal VLAN I have 2 back-ends servers. I need some rule that will redirect to the next back-end server if first response code 404. Also I tried to use the ...
IheartF5_45022
Nacreous
Nov 05, 2013If you have other code in your HTTP_RESPONSE you need to have 'return' after the redirect ie;-
if { [HTTP::status] eq "404"} {
HTTP::redirect "http://www.google.com/"
return
}Otherwise bad stuff happens ie. doesn't work.
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