开发者

Index_file and kohana 3.1.2

Adding 'index_file' => FALSE to the Kohana::init successfully removes the index.php part of URLs, but when a开发者_如何学JAVA page is redirected to website.com/controller/action (note: there is no index.php before controller) I get a 404 Not Found error.

How is lighttpd supposed to know to call the index.php file at the base instead of looking for a controller/action folder (which it seems to be doing and thus getting a 404)?


You need to use URL rewriting.

I would port Kohana's .htaccess to lighttpd.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜