Forum OpenACS Q&A: Re: Best way to do HTTP 3xx Redirections?

Collapse
Posted by Andrew Piskorski on
Hm, this 301 redirect sounds like a good feature to have. 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_returnmoved or ns_returnredirectpermanent or something like that. Should be pretty easy to change the AOLserver Ns_ConnReturnRedirect C 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.