vi /etc/lighttpd/lighttpd.conf
添加如下内容
url.rewrite-if-not-file=(
"^/(sysman|file)(/.*)*" =>"$0" #不重写/sysman,/file目录的防问
,"^/(.*)$" => "/index.php/$1" #实现thinkphp中index.php的隐藏
)
本文介绍如何通过修改lighttpd配置文件实现ThinkPHP框架中index.php的URL隐藏,并提供具体的配置示例。
vi /etc/lighttpd/lighttpd.conf
添加如下内容
url.rewrite-if-not-file=(
"^/(sysman|file)(/.*)*" =>"$0" #不重写/sysman,/file目录的防问
,"^/(.*)$" => "/index.php/$1" #实现thinkphp中index.php的隐藏
)

被折叠的 条评论
为什么被折叠?