【发布时间】:2016-11-16 07:05:31
【问题描述】:
我在 Laravel 4 中创建了应用程序。它给出了 URL 问题。例如:
如果我使用http://example.com/login,它会显示 404 错误。
但如果我使用http://example.com/index.php/login,它会显示没有任何错误。
我想使用不带index.php 的URL,因为通过在URL 中添加index.php,页面中不包含CSS 和JS 文件。
【问题讨论】:
-
服务器上是否启用了mod_rewrite?
-
@Samsquanch。我不知道。但如果不是,那么如何检查它以及如何启用它?
标签: php html css laravel laravel-4