Forum OpenACS Q&A: Re: Best way to do HTTP 3xx Redirections?
ns_returnredirect(which is what ad_returnredirect calls) always does a 302 though. Sounds like a good idea to either add a switch to let it optionally do a 301 instead, or add a new command,
ns_returnredirectpermanentor something like that. Should be pretty easy to change the AOLserver
Ns_ConnReturnRedirectC function to make it happen.
So, I just filed a feature request for that on SourceForge
Of course, without an extension to the AOLserver API like that, you should be able to always just do it with a Tcl proc like you said.