Forum Discussion
Cory_50405
Jun 17, 2014Noctilucent
This will redirect only in the case that the host is abc.test.com and the URI has no value specified (default is /):
when HTTP_REQUEST { if { [[HTTP::host] eq "abc.test.com"] and [[HTTP::uri] eq "/"] } { HTTP::redirect "https://xyz.test.com" } }
- Steve_M__153836Jun 17, 2014NimbostratusWould it be a good idea to do when HTTP_REQUEST { if { [[HTTP::host] eq "abc.test.com"] and [[HTTP::uri] ne "/support"] } { HTTP::redirect "https://xyz.test.com" } } in case someone puts some additional path after the "/" that isn't "support"?