Forum Discussion
2 Replies
Sort By
Hi Anthony Santi,
when HTTP_REQUEST { if { [HTTP::host] ends_with ".domain1.com" } { HTTP::redirect https://[string map {"domain1" "domain2"} [HTTP::host]][HTTP::uri] return } }
- SanjayPNacreous
You can also try this way.
when HTTP_REQUEST { HTTP::respond 301 Location "https://[getfield [HTTP::host] "." 1].domain2.com[HTTP::uri]" return }