note 44808 added to ref.url
| From: | wolando at wp dot pl | Date: | Tue, 17 Aug 2004 10:16:03 +0000 |
| Subject: | note 44808 added to ref.url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-74800@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/ref.url.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44808
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44808&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44808&report=yes
Search -- http://master.php.net/manage/user-notes.php