Forum Discussion
The_Bhattman
Aug 24, 2011Nimbostratus
Hi Chris,
Here is an example where you can redirect based on the PATH
when HTTP_REQUEST {
if {[HTTP::host] eq "www.website.com" } {
switch -glob [string tolower [HTTP::uri]] {
"/uat*" -
"/stage*" -
"/prod*" { HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
}
}
I hope this helps
Bhattman