Forum Discussion
CHRISTY_THOMAS
Cirrus
Aug 01, 2025301 RESPONSE AND REDIRECT
Please help me create a custom iRule in BIG-IP WAF to issue a 301 redirect to the domain abc.bank.ca
BramsBytes
Altocumulus
Aug 01, 2025What are the conditions u want to use this iRule for?
For a simple 301 Redirect you could use:
when HTTP_REQUEST {
HTTP::respond 301 Location https://abc.bank.ca "Connection" "Close"
}
This will redirect all traffic on the virtual server towards the domain abc.bank.ca. Of course you could expand on this by keeping for example the URI elements attached.
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