[TriLUG] apache question: redirect from root dir?

Brian Henning brian at strutmasters.com
Tue Sep 7 11:11:13 EDT 2004


Here's a me-too on this topic:
So I could use this also to take my nonprofit webspace, which is currently
accessible as http://myserver/nonprofit
and redirect it to http://nonprofitdns.org/
which as we have discovered from my recent posts is a named virtual host on
the same server?  I'd do something like:

Redirect permanent /nonprofit http://nonprofitdns.org/

?

~B

----- Original Message ----- 
From: "Jeff Groves" <jgroves at krenim.org>
To: "Triangle Linux Users Group discussion list" <trilug at trilug.org>
Sent: Monday, September 06, 2004 11:57 PM
Subject: Re: [TriLUG] apache question: redirect from root dir?


> Andrew Perrin wrote:
>
> >I would like to send all visitors to the root directory of an apache
> >server (e.g., those who simply visit http://www.host.domain.org) to a
> >specific URL. I understand the <META> tag is a depracated way to do
this -
> >is that right? How else can I do it? I have complete control of the
> >machine, so privileges are not an issue.
> >
> >
> >
> In your Apache httpd.conf file, you may want to do something like this:
>
> Redirect permanent /index.html http://www.specific.url/whatever.html
>
>
> Anyone see any reason this would not work?
>
> Jeff G.
> -- 
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc
>





More information about the TriLUG mailing list