摆脱以Lighttpd结尾的.php

时间:2013-08-03 19:34:39

标签: lighttpd

我刚使用this guide.

将Lighttpd和PHP安装到我的Raspberry Pi上

它工作得很好,我有一个不错的小网站。但是,我想摆脱所有URL上恼人的.php结尾。由于Lighttpd不支持.htaccess文件,我不知道该怎么做。

由于我不是专家,您可能必须非常具体地了解如何执行此操作。

1 个答案:

答案 0 :(得分:0)

将以下内容添加到/etc/lighttpd/lighttpd.conf文件中:

index-file.names        = ( "index.html",  "default.html",                     
                            "index.php",   "default.php" )

更新lighttpd.conf后,重新启动lighttpd。

相关问题