Forum Discussion
Sajid
Cirrostratus
Aug 09, 2019https redirect issue with v14
After upgrading to v14 these irules mapped to https vs not working anymore. when HTTP_REQUEST { if { ( [string tolower [HTTP::host]] equals "www.abc.domain.com") } { HTTP::redirect "https://...
Sajid
Cirrostratus
Aug 11, 2019This logic working for me.
when HTTP_REQUEST {
switch [HTTP::host] {
"www.abc.example.com" {
HTTP::respond 301 Location "https://abc.example.com[HTTP::uri]"
log local0. "Sending request to abc.example.com"}
"www.def.example.com" {
HTTP::respond 301 Location "https://def.example.com[HTTP::uri]"
log local0. "Request redirect to def.example.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