Forum Discussion

1 Reply

  • Something like this may help, if you have specific hhost(s) you're looking at. Otherwise, you could use the URI command to parse the location header and do some more specific replacements.

    when HTTP_RESPONSE {
        if { [HTTP::is_redirect] } {
            switch -glob -- [string tolower [HTTP::header value location]] {
                "*www.carrerslocation.com/contact"} {
                    HTTP::header replace location [string map -nocase {/contact /contact/index.php?contactus} [HTTP::header value Location]"
                }
        }
    }