Forum Discussion
Hien_Truong
Feb 24, 2021Cirrus
Cap and not Cap uri
Hi, i have the below irule When HTTP_REQUEST { if { [HTTP::host] equals " www.abc.com" switch -glob [HTTP::path] { "/App/Events/Calendar.aspx" {HTTP::respond 301 Location "https://www.def/redi...
- Feb 26, 2021
Glad could be of help, would you mind marking the solution as answer provided, so it can help others too.
jaikumar_f5
MVP
Yes you can use string to lower,
when HTTP_REQUEST {
if { [HTTP::host] equals "www.abc.com" } {
switch -glob [string tolower [HTTP::path]] {
"/app/events/calendar.aspx" {
HTTP::respond 301 Location "https://www.def/redirect/Calendar.aspx"
}
default {
pool default_pool
}
}
}
}
jaikumar_f5
Feb 26, 2021MVP
- Were you able to test this.
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