I'm currently building a large scale website that allows each profile page to be it's own unique sub-domain. I was wondering how would I do this using an .htaccess and mod_rewrite?
For example:
Turn this: http://example.com/profile/userid
into: http://userid.example.com