note 44808 rejected from ref.url by tomsommer
| From: | tomsommer@php.net | Date: | Tue, 17 Aug 2004 10:21:35 +0000 |
| Subject: | note 44808 rejected from ref.url by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-74802@lists.php.net to get a copy of this message | ||
Note Submitter: wolando at wp dot pl
----
Hi
I have something to fix
I have cpanel on my server and i cant make it in it becouse it is in my hosting company.
I want any not existing subdomain to go to my main subdomain
like blabla.cos.pl to cos.pl
exept real made subdomains takes me to sites.
it is possible?
I have script like that:
$host = getenv('HTTP_HOST');
switch ($host):
case 'www.cos.pl': header("Location: http://cos.pl");
break;
default: header("Location: error404.php");
case 'cos.pl':
endswitch;
It is possible to do that?
Greets
Wolando