Forum Discussion
Kirit_Patel_521
Nimbostratus
Jun 24, 2013irule not working
I have the following irule and it does not work all i want to do is if a request is https://www.korean.spindices.com redirect to https://korean.spindices.com . The redirect does not work
...
Kevin_Stewart
Employee
Jun 24, 2013The protocol is not part of the host:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"www.korean.spindices.com" {
HTTP::redirect "https://korean.spindices.com"
}
"www.japanese.spindices.com" {
HTTP::redirect "https://japanese.spindices.com"
}
"www.chinese.spindices.com" {
HTTP::redirect "https://chinese.spindices.com"
}
"www.japanese.spindices.com" {
HTTP::redirect "https://supplemental.spindices.com"
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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