[ale] Apache redirects

Jim Popovitch jimpop at yahoo.com
Sat Aug 26 01:43:17 EDT 2000


Thanks John, the 'Redirect permanent' statement was exactly what I was
looking for.

-Jim P.

--- John Hyland <john.hyland at zapmedia.com> wrote:
> Sure.  Use the ServerAlias directive inside the <VirtualHost x.x.x.x>
> of the
> new domain name.
> 
> e.g.
> 
>     <VirtualHost x.x.x.x>
>         ServerName new.otherserver.com
>         ...
>         ServerAlias old.server.com
>         ...
>     </VirtualHost>
> 
> It only works with name-based virtual domains, though.  If you're
> using
> ip-based (or no) virtual domains, you can use the Redirect directive
> instead.
> 
> e.g.
> 
>     ...
>     Redirect permanent / http://new.otherserver.com/
>     ...
> 
> I'd use ServerAlias if you can, though.
> 
> 
> 
> The docs for ServerAlias are at 
> 
> http://www.apache.org/docs/mod/core.html#serveralias
> 
> The docs for Redirect are at
> 
> http://www.apache.org/docs/mod/mod_alias.html#redirect
> 
> 
> HTH,
> John Hyland
> 
> 
> On Fri, Aug 25, 2000 at 09:16:02PM -0700, Jim Popovitch wrote:
> > Does anyone know how to get Apache to redirect from one host name
> to
> > another.  I am changing the domain name of a site, yet I still want
> any
> > URL that has been bookmarked to be seemlessly redirected to the new
> > hostname.  For instance, I'd like http://old.server.com/cgi-bin?foo
> to
> > be redirected to http://new.otherserver.com/cgi-bin/?foo
> 
> -- 
> John Hyland
> Software Developer
> ZapMedia.com
> --
> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in
> message body.


__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list