PATH_INFO模式下 怎么在URL后面添加html

#1 小柒

PATH_INFO模式,利用服务器的PATH_INFO支持,可以形成以下的地址形式:

http://www.php.cn/index.php/c/main/a/index

或者可以做到更美观一些:

http://www.php.cn/index.php/main/index.html

PATH_INFO的页面在处理上还是执行了PHP程序,只是地址上要美观一些,比如“/index.php?c=main&a=index”的形式要更受搜索引擎的欢迎。




第一种配置我配成功了,可是第二种,在这后面添加.html的是怎么配置的呢?

2013-06-28 18:33:12

#2 jake

看过手册?

2013-06-29 02:32:16