I fixed this up a bit (added trace in ns_register_filter):
proc redirect_to_site1a { why } {
#ns_log notice "ns_returnredirect http://www.site1a[ns_conn url]"
ns_returnredirect "http://www.site1a[ns_conn url]"
return filter_ok
}
ns_register_filter trace GET /* redirect_to_site1a
My guess is that you should use in your proc "return filter_return"
instead of "return filter_ok". "filter_ok" doesn't stop further request
processing which probably triggers "page not found" handler. In Robs'
example there is "filter_return".
but I get:
Not Found
The requested URL was not found on this server.
AOLserver/4.0 on http://....
When I comment out the ns_returnredirect and uncomment the ns_log the
log output works fine....
Any ideas.
wj
On Thursday, Jun 19, 2003, at 10:21 America/Denver, Rob Mayoff wrote:
proc redirect_t_site1a {args why} {
ns_returnredirect "http://www.site1a[ns_conn url]"
return filter_return
}
ns_register_filter GET /* redirect_to_site1a
--
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.