How to create friendly URL in php?

后端 未结 8 1849
一整个雨季
一整个雨季 2020-11-21 11:06

Normally, the practice or very old way of displaying some profile page is like this:

www.domain.com/profile.php?u=12345

where u=12345

8条回答
  •  难免孤独
    2020-11-21 11:54

    It looks like you are talking about a RESTful webservice.

    http://en.wikipedia.org/wiki/Representational_State_Transfer

    The .htaccess file does rewrite all URIs to point to one controller, but that is more detailed then you want to get at this point. You may want to look at Recess

    It's a RESTful framework all in PHP

提交回复
热议问题