I changed the filter_return to filter_ok last week because I did not see
filter_return in the docs on aolserver.com.  I changed it back to
filter_return and I still get the error.  I have the file in the
....\servers\server1\moduels\tcl\init.tcl file.  Is that the right
location.  I also created a test.adp file and went to site2a\test.adp
and it returned the test file.  Isn't the proc supposed to kick in and
send the user to site1a\test.adp?

thanks,

wes


-----Original Message-----
From:   Tomasz Kosiak [mailto:[EMAIL PROTECTED]
Sent:   Sat 6/21/2003 2:04 AM
To:     [EMAIL PROTECTED]
Cc:
Subject:        Re: [AOLSERVER] can aolserver redirect to a differenite
> 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".


--
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