Forum Discussion
Brad_Parker
Cirrus
For a permanent redirect you would use this to do a 301:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "www.abc.com" and [string tolower [HTTP::uri]] starts_with "/app/" } {
HTTP::respond 301 noserver Location "https://app.def.com/[string map {/app/ /} [string tolower [HTTP::uri]]]"
}
}
SSell
Sep 23, 2015Altostratus
We don't have anyway to test this until actual implementation. I was going to leave the question open until we implement and test which is scheduled for next Tuesday. Thanks for your help