Hi there,
I'm trying to use redirection to make make virtual subdomains.
The script I'm using won't work. And it suppose to work. But well....
This is the script hope you can tell me what's wrong with it:
=============================================
<?php
$redirecturl = "http://www.domain.com/index.html";
$calledurl = strtolower($HTTP_HOST);
if ($calledurl == 'subdomain.domain.com') {
$redirecturl = "http://www.domain.com/cgi-bin/anything.cgi";
}
Header("Location: $redirecturl\n");
?>