F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

3 Replies

  • rule rules { when HTTP_REQUEST { set host [string tolower [HTTP::host]] if {$host ends_with "abc.com"} { HTTP::redirect "https://[string map {"abc.com" "xyz.com"} $host][HTTP::uri]" } } }

     

    Will this work?

     

  • You can save a step this way:

    when HTTP_REQUEST { 
        if { [string tolower [HTTP::host]] ends_with "abc.com" } { 
            HTTP::redirect "https://[string map -nocase {"abc.com" "xyz.com"} [HTTP::host]][HTTP::uri]" 
        } 
    }