-1

Is this possible with htaccess

http://domain.com/index.php?u=userone

turn to this?

http://userone.domain.com

avien
  • 177
  • 5
  • 14
  • also http://stackoverflow.com/questions/183928/how-to-let-php-to-create-subdomain-automatically-for-each-user and http://stackoverflow.com/questions/6895657/how-to-create-a-subdomain-with-username-as-subdomain-name?rq=1 and a couple others. Please use the search function before asking. – Gordon Mar 02 '13 at 08:35

1 Answers1

1

You don't actually need .htaccess for the dynamic subdomains.
Dunno why everyone are so stick with it. As soon as you will get all *.example.com requests directed to your document root, you will be able to distinguish them using HTTP_HOST env variable.

What you really need is to set up your DNS record. And no .htaccess could help you with it.

Your Common Sense
  • 156,878
  • 40
  • 214
  • 345