well i'm not really knowledged with this feature.
but what I need to do is create sub-domains from a server off the users login
ie, they register with 'tim' it creates tim.mydomain.com in return.
Can someone please point me in some direction?
[SOLVED] mod rewrite
Moderator: General Moderators
first you need to make sure all domains point to the right address, zone file likes this:
then you tell apache to handle all the domains likes this:
and then a little script to do whatever
Code: Select all
* IN A 255.255.255.0Code: Select all
<VirtualHost 255.255.255.0>
DocumentRoot /home/user/public_html
ServerName www.domain.com
ServerAlias domain.com
ServerAlias *.domain.com
</VirtualHost>Code: Select all
eregi("^([^\.]+)\.",$HTTP_HOST,$args);
$subdomain = $args[1];
if (($subdomain != "www") && ($subdomain!= "DOMAINNAME")) {
include("file.php");
exit();
}
}