Forum Discussion
Joe_Pipitone
May 12, 2014Nimbostratus
Just tried that - it's not logging. The only way I had it logging before was to put log local0. "Query is [HTTP::query]" before the last curly brace. It knows what the query is, however it doesn't seem to be processing.
For instance - this will log the query:
These do NOT work
switch -glob [string tolower [HTTP::host]] {
"oldforum.olddomain.com" {
Check the URI, set to lowercase
switch [string tolower [HTTP::query]] {
"tid=" {
HTTP::redirect "https://newforum.newdomain.com/default.aspx?g=posts&t=[URI::query [HTTP::uri] tid]"
return
}
"fid=" {
HTTP::redirect "https://newforum.newdomain.com/default.aspx?g=topics&f=[URI::query [HTTP::uri] fid]"
return
}
"c=" {
HTTP::redirect "https://newforum.newdomain.com/default.aspx?g=forum&c=[URI::query [HTTP::uri] c]"
return
}
}
log local0. "Query is [HTTP::query]"
}