httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
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 <baconputing@gmail.com> wrote:

> According to the mod_alias documentation
> <http://httpd.apache.org/docs/2.2/mod/mod_alias.html#Redirect>, 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.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message