要在 Lighttpd 中启用友好的 URL,请确保已加载mod_rewrite模块并将以下内容添加到服务器配置中: url.rewrite = ( "^/(data|install|js|styles)/(.*)$" => "$0", "^/(.*\.php)(.*)$" => "$0", "^/.*(\?.*)" => "/index.php$1", "" => "/index.php" )