On 6/26/07, Matt <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to