httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kishore Jalleda" <kjall...@gmail.com>
Subject Re: [users@httpd] redirect debacle
Date Wed, 12 Apr 2006 23:05:08 GMT
I guess you need the Rewrite directive for what you are trying to acheive,
as far as the syntax for Redirect goes

                            Redirect [status] URL-path URL

notice that the second argument is a URL-path which is supposed to be PATH
(absolute or relative), and not a URL like you defined.

There are two walk arounds for this

1) Go into the config section of http://csquared.stanford.edu/, and do this
Redirect permanent    /   http://wilkinson.stanford.edu/csquared/

2) Or use Mod_Rewrite to rewrite the URL

Kishore Jalleda
http://kjalleda.googlepages.com


O
n 4/12/06, Paul Constantine <paulconstantine@hotmail.com> wrote:
> I have an apache server running here:
>
> http://wilkinson.stanford.edu/
>
> And there is a redirect somewhere (not on my system) that takes the
> following url:
>
> http://csquared.stanford.edu/
>
> to the same apache server. I would like to take requests that look are for
> 'http://csquared.stanford.edu/' and send them to
>
> http://wilkinson.stanford.edu/csquared/
>
> which is located at
>
> /var/www/html/csquared/
>
> on my system. I tried the directive
>
> Redirect permanent http://csquared.stanford.edu/
> http://wilkinson.stanford.edu/csquared/
>
> but that didn't work.
>
> Thanks in advance,
> Paul Constantine
>
>
>
> ---------------------------------------------------------------------
> 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