0

我在 Laravel 4 中有一个表单,它使用:

{{ Form::open('login') }}

这会生成以下内容:

<form method="POST" action="http://[...]/public/index.php/login" accept-charset="UTF-8">

我有 .htaccess 等。配置为从 URI 中隐藏“index.html”,所以我也希望从这些生成的 URL 中隐藏它。有没有人遇到过这个问题并解决了?

4

1 回答 1

1

您需要编辑 application/config/application.php 并删除 index.php。这将影响由 route() 生成的表单和任何 URL。

于 2013-05-13T23:12:41.567 回答