URL mapping in PHP?

前端 未结 7 1309
孤街浪徒
孤街浪徒 2020-12-05 01:05

I come from a Java background and with any servlets-based technology, it\'s trivial to map a range of URLs (eg /reports/, /secure/.do) to a specified servlet. Now

7条回答
  •  半阙折子戏
    2020-12-05 01:19

    Can't be done in PHP as such. Note that in Java, it's not the Servlets either that map URLs, but it's the configuration of the servlet container (e.g. Tomcat).

    You can achieve similar results for PHP applications by using URL rewriting.

提交回复
热议问题