Forum Discussion
DChu_344155
Nimbostratus
Dec 15, 2017HTTP Redirect not working
I am new to iRules and I am trying to setup an iRule to redirect some traffic. I want to do this when status 301 and 302 are returned in the headers, but for basic testing I went with just the below ...
Only1masterbla1
Cirrus
Dec 16, 2017You will need an iRule something like this:
when HTTP_REQUEST {
if {([HTTP::host] equals ";) } {
HTTP::redirect "; [HTTP::uri]
}
}
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