Re: Re: redirecting a domain

From: Date: Thu, 27 Mar 2003 14:10:58 +0000
Subject: Re: Re: redirecting a domain
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-141220@lists.php.net to get a copy of this message
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, bogus@news.php.net (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


« previous php.general (#141220) next »