Forum OpenACS Q&A: Response to Sitewide redirects, DNS and Moving a Site

Collapse
Posted by Todd Gillespie on
Use a filter.  There's actually an example on exactly this in "Philip & Alex's":

ns_register_proc GET / martigny_redirect

proc martigny_redirect {} {

    append url_on_swissnet "http://www-swiss.ai.mit.edu" [ns_conn url]

    ns_returnredirect $url_on_swissnet

}