【发布时间】:2014-05-07 17:01:19
【问题描述】:
我正在尝试从网址中删除 index.php。
现在 Kohana 提供的 URL 前面没有 index.php,但是,这些 URL 将转到未找到的页面。
当我在网址前手动输入index.php 时,/index.php/login 之类的东西会起作用
但系统本身会指向/login,这会导致未找到错误。
我的 .htaccess 文件中有以下内容,从 Kohana 复制
RewriteRule .* index.php/$0 [PT] 这对我没有任何作用。
如果有人对幕后发生的事情有任何线索,那就太好了。
【问题讨论】:
标签: php .htaccess mod-rewrite kohana