-1

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.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
user1958711
  • 11
  • 1
  • 3

2 Answers2

2

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

user1909426
  • 1,658
  • 8
  • 20
0

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.

WhoaItsAFactorial
  • 3,538
  • 4
  • 28
  • 45
  • 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. – andyrandy Jan 10 '13 at 18:32