302 Redirects

Does anyone know of a way to do 302 redirects when a wildcard appears more than once?

I’m trying to make easier url references to file attachments. (Rather than “/dbname.nsf/view/document/$file/filename” I’d like to do something like “/dbname.nsf/view/filename”.)

I set the first column in a “Files” view to show @attachment names, but I can’t get around the double file name reference. (ie. /dbname.nsf/Files/FILENAME/$file/FILENAME)

I wanted to just use a redirection rule like this:

/Files/* → /Files//$File/

But it won’t let me use the wildcard twice in the outgoing pattern.

I can’t use up an agent slot for this because of the performance hit.

And I can’t manually set the http header with formula language, because domino won’t let me set the status to 302…

Does anyone have any other ideas?