Here is what i need and i dont know how to do it... I need to be able to create dynamic subdomains.. well to be more exact i need to be able to display information for a given user when i type his id on the subdomain ... so if i type incdeveloper.domain.com he displays my information... how can i do that?, i know i need .htaccess but i dont know how to do it thanks in advance
Its called wildcarded subdomains... Done by adding the following DNS record: *.mysite.com. A ipnum.ipnum.ipnum.ipnum
To handle those wildcarded subdomains, you can use by example this php script. <? $host = $HTTP_HOST; $names = explode(".", $host); foreach($names as $name) { // change "domain" to your domain and "com" to your TLD. if($name == "www" or $name == "domain" or $name == "com") { continue; } else { $actual_name = $name; } // $actual_name contains the subdomain. PHP: Cheers!