You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Paul Constantine <pa...@hotmail.com> on 2006/04/13 00:23:59 UTC

[users@httpd] redirect debacle

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


Re: [users@httpd] redirect debacle

Posted by Paul Constantine <pa...@hotmail.com>.
Perhaps you could give me some hints for doing this with mod_rewrite, if you 
have previous experience? It looks quite involved.

Thanks again,
Paul


>From: "Kishore Jalleda" <kj...@gmail.com>
>Reply-To: users@httpd.apache.org
>To: users@httpd.apache.org
>Subject: Re: [users@httpd] redirect debacle
>Date: Wed, 12 Apr 2006 19:05:08 -0400
>
>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 <pa...@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
> >
> >



---------------------------------------------------------------------
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


Re: [users@httpd] redirect debacle

Posted by Kishore Jalleda <kj...@gmail.com>.
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 <pa...@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
>
>