Forum Discussion
1 Reply
Sort By
- Stanislas_Piro2Cumulonimbus
Hi,
you can use this code :
when HTTP_REQUEST { if {[HTTP::host] equals "www.abc.com"} { if {[scan [HTTP::uri] {/%[^/]%s} garbage new_uri] == 2} { HTTP::redirect ://www.xyz.com${new_uri} } else { HTTP::redirect ://www.xyz.com/ } } }