Forum Discussion
Juan_María_Rodr
Nimbostratus
Mar 02, 2006redirect and loop, please help
Hello.
Could anyone tell me why this iRule ends in a loop?
when HTTP_REQUEST {
if { [HTTP::host] equals "www.pepito.com"} {
HTTP::redirect "http://www.pepito.com/mainten...
JRahm
Admin
Mar 06, 2006By including the brackets on the HTTP::uri, you are setting a variable name to the value of HTTP::uri. For example, if your URI is only "/", then the equivalent would be
set / "/maintenance/index.html"
Which may not throw an error when updated but probably will error out when evaluated.
It would be better written:
HTTP::uri "/maintenance/index.html"
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