Forum Discussion
Wil_Schultz_101
Feb 29, 2012Nimbostratus
Sure, it would seem that your $path isn't hitting.
Try the same with some logging as the default action, then check /var/log/ltm for further information.
when HTTP_REQUEST {
set path [string tolower [HTTP::path]]
}
when HTTP_RESPONSE {
switch [HTTP::status] {
"404" {
switch -glob $path {
"/agency1" {
HTTP::respond 301 \
"Location" "http://www.main.com/agency1/moved.html" \
"Server" "www.main.com"
}
default {
log "We have a miss, the actual path is $path"
}
}
}
}
}