【发布时间】:2015-10-12 18:39:06
【问题描述】:
您好,我已经使用此视频在 ec2 实例上安装了 laravel
www.youtube.com/watch?v=8ARpTKWc6lQ
我已将文档根路径从/var/www 更改为
到 deafult.conf 文件中的/var/www/html/laravel/public
,如视频末尾所述
但是现在,当我打开我的网站时,我的主页http://52.26.133.246/ 有('/') 显示正常,但是当我打开我的其他页面时,我使用('AdminApp') 之类的路线,或者您可以简单地单击主页导航栏上的管理链接和整个链接是http://52.26.133.246/AdminApp 它说
404 page not found
还有
The requested URL /AdminApp was not found on this server.
但是当我在 url 中使用 /index.php 时,页面会显示 链接在这里 http://52.26.133.246/index.php/AdminApp
也请检查这个链接也没有index.php
http://52.26.133.246/welcome
使用 index.php
http://52.26.133.246/index.php/welcome
请帮助我。 谢谢
【问题讨论】:
-
服务器需要 mod_rewrite 扩展
-
@KiranLM 我是 .htaccess 和 mods 和文件权限的初学者,我该怎么做?
标签: php .htaccess laravel amazon-ec2 laravel-5