Umm, I think I'm doing this REALLY wrong cause I'm kinda confused
Yea, I'm new to php...thats probably why.
But, I have barely started my site yet, and I'm using a just stupid page for my index (and its not even related to my site) but I wanted to do this part to get it over with.
Now heres what I have:
<?php
//get domain entered in browser
if ($HTTP_HOST == "www.ultimastar.net") {
//forward to appropriate page
header("Location : index.html");
exit;
}
if ($HTTP_HOST == "http://68.6.216.163:8475/index.html") {
header("Location : index.html");
exit;
}
//end duplicating, insert below.
//else show error page
else {
header("Location : error.html");
exit;
}
?><title>Opening Your Page ::</title>
What am I doing wrong? Or what can I correct? Help is appreicated.