As im not home i've tried this script on a different server...
But I get this error:
Mydomain would actually be:
http://www.smartsoftcorp.tk
and my script is:
<?php
//get domain entered in browser
if ($_SERVER['HTTP_HOST'] == "smartsoftcorp.tk") {
//forward to appropriate page
header("Location: /Mainfiles/");
exit;
}
//get domain entered in browser
if ($_SERVER['HTTP_HOST'] == "mail.smartsoftcorp.tk") {
//forward to appropriate page
header("Location: /mail/");
exit;
}
//get domain entered in browser
if ($_SERVER['HTTP_HOST'] == "download.smartsoftcorp.tk") {
//forward to appropriate page
header("Location: /downloads/");
exit;
}
//end duplicating, insert below.
//else show Main Page
else {
header("Location: /index.php");
exit;
}
?>
And my error is:
ÿþ<
I've tryed everything and still doesent work
My real server is:
http://smartsoftcorp.webcindario.com
And the pathe's are all correct and I dont get it... simply I dont get it... lol...