0

So I'm building a website and a user's profile link would be like this

domain.com/profile.php?name=john.smith

But what is it called for it to be like this instead

domain.com/john.smith

Normally this would return a 404 error since it's not a file or directory in the root.

Casimir et Hippolyte
  • 88,009
  • 5
  • 94
  • 125
TehPirate
  • 154
  • 1
  • 12
  • 1
    its called url rewriting. you create a rule that translates "/john.smith" into "profile.php?name=john.smith" – Honk der Hase Jan 11 '17 at 22:54
  • You can rewrite URLs like that with the help of `.htaccess`, Google "htacces url rewrite" – Qirel Jan 11 '17 at 22:55
  • Check this out: http://stackoverflow.com/questions/20563772/reference-mod-rewrite-url-rewriting-and-pretty-links-explained – Don't Panic Jan 11 '17 at 22:57

0 Answers0