Ok, here's my problem, I'm sure I just haven't gotten the idea here, but take a look and call me dumb if need be...
here's what I have in index.php
<?php
/*
Bluedog's Multiple Domain PHP Script
This script was created to help Abyss Web Server users so that they could host more than one site using
different domains and so I made it easier to program this script for their domains by creating a easy to use
site creator that can insert new domains instantly after hitting Submit Me!. Enjoy the script!
System Requirements:
1. Abyss Web Server (PHP Installed)
2. Alot of free domains or paid
Now Installation!
Go to your main htdocs folder and rename your index.html to index2.html. At the top of your Internet Explorer
browser , click on Edit than Select All, click on Edit again and this time click on copy. Open up NotePad and
click on edit than paste , save the file as index.php and put that file in your htdocs folder. Your Done!
*/
//get domain entered in browser
if ($_SERVER['HTTP_HOST'] == "
www.ParagonCityGuardians.com") {
//forward to appropriate page
header("Location : PCG/Index.html");
exit;
}
//get domain entered in browser
if ($_SERVER['HTTP_HOST'] == "
www.michael-alicea.net") {
//forward to appropriate page
header("Location : Poetry/Index.html");
exit;
}
//end duplicating, insert below.
//else show Main Page
else {
header("Location : /index2.html");
exit;
}
?>
Now, first, do i need to put the original site I have hosted through Abyss in this script. Second, do I have the syntax for the locations correct? My directory structure is:
\htdocs =
www.michaelsplayground.com files & main area
\htdocs\PCG =
www.ParagonCityGuardians.com files
\htdocs\Poetry =
www.michael-alicea.net files
Please help with this. Thanks.