Typical website.com/username

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mevets
Forum Newbie
Posts: 23
Joined: Fri Sep 15, 2006 10:06 am

Typical website.com/username

Post 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.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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
Post Reply