note 39747 added to ref.http
| From: | Sherri at rn2 dot php dot net | Date: | Mon, 09 Feb 2004 17:07:17 +0000 |
| Subject: | note 39747 added to ref.http | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-64895@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/ref.http.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39747
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39747&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39747&report=yes
Search -- http://master.php.net/manage/user-notes.php