Possible Duplicate:
Create Subdomains on the fly with .htaccess (PHP)
I'd like to have the following domains structure with .htaccess:
domain.com REWRITES TO Home Page (index.php)
www.domain.com REWRITES TO Home Page (index.php)
blog.domain.com REWRITES TO index.php?page=blog
*.domain.com REWRITES TO index.php?page=user&id=* (where * can be anything)
Is there a way to create anything like this?