Forum Discussion
hooleylist
Feb 10, 2011Cirrostratus
Nice suggestion Chris. You could save the second lookup by returning the name and value in the first lookup. Here's an untested example:
when HTTP_REQUEST {
set lookup [class search -element domainredirects equals [string tolower [HTTP::host]]]
if { [llength $lookup] == 2 } {
HTTP::redirect "https://[lindex $lookup 2][HTTP::uri]"
}
}
Aaron