Creating a personal URL for all users to my site

Posted by Abs on Stack Overflow See other posts from Stack Overflow or by Abs
Published on 2010-03-26T13:40:35Z Indexed on 2010/03/26 13:43 UTC
Read the original article Hit count: 315

Filed under:
|

Hello all,

When a user registers with my site I want to offer them a login page and a user area with the URL:

http://user1.mysite.com http://user2.mysite.com http://user3.mysite.com ...

I did a google search for this but I wasn't sure of the right terms...

How can I do this without having to actually create lots of subdomains - I am sure its not done this way - is it URL re-writing? Apache mod_rewrite?

If so can someone give me an example please or is there a better way of doing this?

Btw, I am using Codeigniter - if Codeigniter has something that can do this, I would rather use that.

Thanks all for any help

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about php