Home
The Toolkit for Online Communities
15939 Community Members, 1 member online, 2290 visitors today
Log In Register

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

OpenACS Home : Forums : OpenACS Q&A : Re: Best way to do HTTP 3xx Redirections? : One Message

+
Posted by Joel Aufrecht on

After RTFMing (http://openacs.org/doc/openacs-4/rp-design.html), I found a simple solution that does what I need (and most of what I want.)

So. Suppose you have a file /foo/bar.html and you move it to /baz/bar.html and you want old links to work. Create a new file /foo/bar.vuh with one line:

ad_returnredirect /baz/bar

This will return an HTTP 302, the browser will open the new file, and all of the links will work fine.

+
Posted by Tilmann Singer on
There was a bug with .vuh files called other than index.vuh (e.g. bar.vuh), which should be fixed in more recent versions, so beware if you run into that bug #23.