httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] Using Redirect directive without specifying scheme or host...
Date Tue, 26 Jun 2007 22:23:13 GMT
On 6/26/07, Matt <> wrote:

> According to the mod_alias documentation
> <>, when
> using the Redirect directive "The new /URL/ should be an absolute URL
> beginning with a scheme and hostname, but a URL-path beginning with a
> slash may also be used, in which case the scheme and hostname of the
> current server will be added."  That sounds like it does what I want.
> However, if I use this:
>     Redirect /source/ /destination/
> ...then when I try to restart Apache it indicates that there is a syntax
> error and states "Redirect to non-URL".  I've tried several variations
> but they all give me the same error.
> I know I could probably use mod_rewrite to accomplish this but that
> seems like a heavyweight solution and an awful lot of work

Indeed, if I remember correctly, this worked in 2.0 but the change
never made it into 2.2 (until recently). I believe it will be in the
next version. Until then, you'll need to use mod_rewrite.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message