how facebook/twitter username works ??

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
bsharp42
Forum Newbie
Posts: 6
Joined: Sun Aug 02, 2009 12:30 am

how facebook/twitter username works ??

Post by bsharp42 »

This just a general thing, but facebook/twitter happened to use it so I was wondering.

How does

facebook.com/bsharp42
twitter.com/bsharp42


work ?? I currently have my site set up as

mysite.com/profile.php?q=bsharp42

and want to enable mysite.com/bsharp42

for the sake of my users (if any...ha....ha....)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: how facebook/twitter username works ??

Post by Christopher »

Assuming that you are using Apache, search for mod_rewrite and clean URLs.
(#10850)
Post Reply