Forum Discussion
Thiyagu
Cirrus
Jan 20, 2020Irule for an URI redirection
Hello All, I have created an irule for an URI redirection and the expected flow as below: 1- Client to LB : https://www.domain1.com/resource1 2- LB to Client: Permanent URI redirection to an ...
Leonardo_Souza
Cirrocumulus
Jan 20, 2020Try this:
when HTTP_REQUEST {
set NEW_URI "/resource2"
switch -glob [string tolower [HTTP::uri]]
"/resource1"
{
HTTP::respond 301 Location "https://[HTTP::host]$NEW_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