note 39747 deleted from ref.http by vincent

From: Date: Mon, 09 Feb 2004 17:10:40 +0000
Subject: note 39747 deleted from ref.http by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-64897@lists.php.net to get a copy of this message
Note Submitter: Sherri. ---- I have one domain say a.com parked and pointed to b.com. But I only have hosting space for b.com. So, normally if someone goes to a.com they are redirected by the hosting company to b.com.(to the front page). But, I created a new subdirectory in b.com to hold files for a "seperate" site a.com. I did this at the top of b.com's index page to get it to go to that folder: <? if($HTTP_HOST == "www.a.com"){ header("Location: folder/index.php"); } ?> Handy. Now I only pay for hosting for b but it's like having 2 domains. Just in case someone finds this useful.

« previous php.notes (#64897) next »