[TriLUG] apache question: redirect from root dir?

Jason Purdy jason at journalistic.com
Mon Sep 6 23:55:42 EDT 2004


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.

Check out mod_rewrite:

http://httpd.apache.org/docs/mod/mod_rewrite.html

You can put it in the server config file or in an .htaccess file.

Cheers,

Jason



More information about the TriLUG mailing list