Is it possible to implement a server-relative redirect using existing Apache features?
mod_alias does have a Redirect command, but that one always generates an absolute redirect even if configured like
Redirect /asdf /qwer
Also tried using mod_rewrite like this:
RewriteEngine On
RewriteRule /asdf(.*) /qwer$1 [R,L]
The end result of either of these settings is the same:
HTTP/1.0 302 Found
Location: http://my-host.blah.blah:20085/qwer
But what I really need is:
HTTP/1.0 302 Found
Location: /qwer
--- EDIT ---
Yes, I know this is against RFC spec. But all modern browsers support a relative redirect, and I really need it for a temporary fix.
That is the way Redirect works; from the manual:
From RFC 2616, section 14.30:
The field value consists of a single absolute URI.