Forum Discussion
Kirit_Patel_521
Nimbostratus
Jun 24, 2013irule does not work
I have a irule as follows and it does not work basically when i test it the redirect does not work so when i type https://www.korean.spindices.com it should redirect to
https://korean.spindices....
giltjr
Nimbostratus
Jun 28, 2013Try:
when HTTP_REQUEST {
switch -glob [HTTP::host] {
"https://www.korean.spindices.com" {
HTTP::redirect "https://korean.spindices.com"; return
}
"https://www.japanese.spindices.com" {
HTTP::redirect "https://japanese.spindices.com"; return
}
"https://www.chinese.spindices.com" {
HTTP::redirect "https://chinese.spindices.com"; return
}
"https://www.japanese.spindices.com" {
HTTP::redirect "https://supplemental.spindices.com"; return
}
}
}
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