Forum Discussion
iRule http 302 redirect not working
Any help is much appreciated. I am trying to use an iRule to redirect traffics inbound on one virtual server xxxx.com to another URL, yyyy.com with status code of 302. My iRule doesn' seem to be working as http request to xxxx.com doesn't get redirected. Below is my iRule which has been applied to virtual server for domain : xxxx.com
when HTTP_REQUEST {
if {( [HTTP::host] equals "xxxx.com")}{
HTTP::respond 302 Location "http://yyyy.com"
}
}
Please correct me if I am doing something wrong in the above.
Any help is much appreciated
- hooleylistCirrostratusHi,
Recent Discussions
Related Content
* 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