Take the 2-minute tour ×

Possible Duplicate:
username urls like twitter and facebook
How to get user friendly URLs without any file extensions?

Something like https://www.facebook.com/n26n is the url when you view somebody's profile. How can you have a url without a file extension? As facebook uses PHP, could this be done by php?

Sorry, i am just a starter so I am just curious about that.

share|improve this question

marked as duplicate by Igy, Kermit, Quentin, Josh, ifaour Jan 10 '13 at 19:06


2 Answers 2

up vote 2 down vote accepted

This can be achieved in a number of ways, the most common using an apache mod called mod_rewrite

share|improve this answer

It is just an internal redirect. Facebook knows to that those types of URLs are used to point to user profiles. The n26n portion is probably the base32 encoding of the user's ID that you are accessing.

share|improve this answer
actually, that n26n portion is not any encoded string, it´s the vanity url. the one you are able to set by yourself as user. –  luschn Jan 10 '13 at 18:32
