Rather than redirecting to a seperate HTML file you can also use the PHP Header command, something like:

<?php
  if (strstr($_SERVER['HTTP_HOST'], 'domain.org')) {
     header('Location: http://www.domain.net');
     exit;
  }
?>



Dan wrote:

On Fri, 14 Jul 2000 22:26:05 -0400, [EMAIL PROTECTED] (Unknown
Sender) wrote:



I have an apache question and I have NO idea where to post it.  Is there
a newsgroup or mailing list simply for apache?

I have multipal domain names: domain.net & domain.org.  I would like to
configure apache such that when someone goes to www.domain.org, they are
"redirect" to www.domain.net.  They are both the exact same web site, I
simply want the domain name to show up as www.domain.net.  Any thoughs
on how to do that?

Sam



The easiest way is to put this in you index.html file without the comment markup of course.

<!--
<META HTTP-EQUIV="REFRESH" CONTENT="0"
URL="http://www.domain.net/homepage.html";>
-->

Dan





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to