Forum Discussion
mika
Nov 30, 2020Cirrus
Redirection with datagroup and irule
Hello teams, Need helps!! I want to redirect a host in terms of path example: xxx.com/abc/jlk to xxx.com/aze, xxx.com/wyc/jlk to xxx.com/aze, xxx.com/oic/jlk to xxx.com/aze ....... For this...
- Dec 01, 2020
Hi mika,
If datagroup values contain upper case, replace them. iRule:
when HTTP_REQUEST { if { [class match [string tolower [HTTP::uri]] equals dg-name] } { HTTP::redirect "https://xxx.com/aze" } }
You can use starts_with instead of equals according to your needs.
Dec 01, 2020
Hi mika,
If datagroup values contain upper case, replace them. iRule:
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::uri]] equals dg-name] } {
HTTP::redirect "https://xxx.com/aze"
}
}
You can use starts_with instead of equals according to your needs.
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