Forum Discussion
jato_40959
Nimbostratus
Jun 02, 2010Redirect 301
I have implemented this irule in my system:
when HTTP_REQUEST {
HTTP::respond 301 Location https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
The irule isn't working, ...
The_Bhattman
Nimbostratus
Jun 14, 2010Hi Jato,
Can you integrate the 2 rules together in the say the SWITCH statement. Perhaps a DEFAULT ie:
when HTTP_REQUEST {
if {[HTTP::host] equals "www.my domain.es" } {
switch -glob [string to lower [HTTP::header User-Agent]] {
"mid*" -
"cidc*" { HTTP::redirect "https://wap.my domain.es" }
default " { HTTP::respond 301 Location https://[get field [HTTP::host] ":" 1][HTTP::uri] }
}
}
}
I hope this helps
Bhattman
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