Get the right user page

Hi everyone
I am studing websites like social networks, now i want a help with this part, because i dont know how it works.

It is simple, per exemple some websites like facebook, google+ and others have a url page for each user, and my doubt is, i go to the top bar (URLs) of google chrome and put some like:188.154.1.50/main.php it is on my home server, when i type it, it go to a page created by me but now i have 100 milion users and i type 188.154.1.50/name of the user or i can go to my main page and search on a textbox for my friend and then i need to go to their page. it is equal to facebook and google+.

Really need some explication with that.

Thanks everyone

I think yours is a question about the use of mod_rewrite, that permits many urls conforming to a certain pattern to actually all be served from a single page.

ie

website/joe-bloggs
website/john-doe
etc…

have “pretty urls” showing for the user, but are in fact re-written on the server before they even get to PHP and are sent to :

website/people.php?name=joe-bloggs

I think that is part of the puzzle you are trying to figure out.

its url redirects done by htaccess and controller file.