I'm looking for a way to construct a RewriteCond that returns true only when a URL is requested without proper HTTP authentication. (The rewrite rule will generate a 301 redirect forcing the request through a proxy, where proper HTTP auth will allow direct access). So far, The Googles have not been helpful; anyone here have an idea?
Effectively, I want
to return the object directly, but
will return a 301 to:
(The proxy will use the proper u/p to access the server, so we won't have a redirect loop...)