Forum OpenACS Q&A: Response to How do I constrain an OpenACS web-site

Collapse
Posted by Mike Slack on
Well, you could put an ns_returnredirect at the tops of pages you
don't want users to see.  It will send them to whatever page you specify.

Or you could insert something like this at the top of the pages:

ns_return 404 text/html [not_found_message]

where not_found_message is a procedure you have defined that will
produce an html page with whatever message you want users to get when
they request a "not found" page.

One thing I don't remember is if Aolserver will process the rest of
the page if you put an ns_return or ns_returnredirect at the top.
Does anyone else know the answer to this?