URL mapping in PHP?

前端 未结 7 1297
孤街浪徒
孤街浪徒 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:44

    As others have mentioned you can use mod_rewrite to do this but also you could use a front controller design pattern which is what many of the web frameworks use. Take a look at Horde routes or Zend_Controller_Router_Rewrite which can be used for MVC,

    0 讨论(0)
提交回复
热议问题