0

我在共享主机上安装了 cgit,虽然主页出现了,但每个 url 都出现了找不到文件,直到我将 cgit.cgi 添加到路径的前面。

例如www.domain.com/path,除非在浏览器中键入 as 否则会出错www.domain.com/cgit.cgi/path,但返回页面中的所有链接都在表单中www.domain.com/path

.htaccess 是否有一些重写规则会导致网络服务器将每个实例www.domain.con/path视为 as www.domain.com/cgit.cgi/path?Drupal 的 Clean URLs 浮现在脑海中。

4

1 回答 1

0

尝试这个

RewriteRule path cgit.cgi/path
于 2012-09-24T05:27:33.723 回答