Page 1 of 1

Typical website.com/username

Posted: Sat Apr 21, 2007 6:57 pm
by mevets
Im have written a script that allows users to register. Once they register though, I want them to have their own url. Such as myspace.com/whoever or facebook.com/whoever. How is this technique usually applied? Is a DIR always created for each user or is it an apache thing? Please any help appriciated.

Posted: Sat Apr 21, 2007 7:02 pm
by John Cartwright
It is most certaintly mod_rewrite which will capture the http://www.domain.com/[b]username[/b] and transparantly convert it to something like http://www.domain.com/profile.php?name=[b]username[/b]

Search around these forums or google, there are tons of examples