14
Vagelis use this then:
Quote:
$whathost=$_SERVER["HTTP_HOST"];
if($whathost != "www.cna.gr")
{
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.cna.gr".$_SERVER["REQUEST_URI"]);
exit();
}
It's also important to realize you can edit your .htaccess file to do this in your .htaccess:
Redirect permanent /
http://www.cna.gr/UN PARK your domain first and put it on it's on account if you can. This is better anyway as it's not going to cause Google to be pissed at you where-as if you just park a bunch of domains on your main domain google will get wise and omit stuff from your results.