Err, the subject's a bit confusing, but...
I'm hosting multiple domains on a PC, but I haven't worked out how to get Apache to deal them all as seperate sites (so typing in one url will get you the same index page for each site).
So, I just knocked up a quick script to take the incoming URL and meta-refresh to a sub-folder containing that site. BUT, I've forgotten the command to call the URL.
I had tried PHP_SELF, but that only takes the page. Was it HTTP_REFEROR ? I can't remember... Help!!
My first attempt: (with the non-working PHP_SELF)
<?
$url = PHP_SELF;
if ($url == "http://www.site1.com") { $refresh = "\site1\index.php"; }
elseif ($url == "http://www.site2.com") { $refresh = "\site2\index.php"; }
elseif ($url == "http://www.site3.com") { $refresh = "\site3\index.php"; }
else { $refresh = "\nodomain.php"; // Where's your site!? }
?>
<HEAD>
<TITLE> Please Stand By . . . </TITLE>
<meta http-equiv="Refresh" content="5; URL=<? echo $refresh ?>">
</HEAD>
<BODY>
<TABLE HEIGHT=100% WIDTH=100% BORDER=0>
<TR><TD ALIGN=CENTER VALIGN=CENTER>
<FONT SIZE=2 FACE="Verdana,Helvetica,Arial">
Please Stand By . . . <BR>
<BR>
Connecting to your desired site . . . <BR>
</FONT>
</TD></TR>
</TABLE>
</BODY>