Here is one more rev.... This will work with a ? in the url....

[ns_conn url] does not grab everything after the first /.....

ns_register_filter preauth GET /* redirect_to_site1a

proc redirect_to_site1a { args why } {
    set query [ns_conn query]
    if { $query != "" } {
      set query "?$query"
    }
    # next line for debugging....
    ns_log notice "ns_returnredirect http://site1a[ns_conn
url]:[ns_conn peeraddr]:$query"

    ns_returnredirect "http://site1a[ns_conn url]$query"
    return filter_return
}


I have tried to put in a [ns_conn host], but it is blank..... any ideas why?

wj


-- AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to