gpt4 book ai didi

laravel-5 - 将 Laravel 5 项目部署到主机后,路由无法正常工作

转载 作者:行者123 更新时间:2023-12-03 07:58:14 25 4
gpt4 key购买 nike

我刚刚将我的 Laravel 5 项目上传到托管服务器。索引页面几乎可以正常工作,但每个链接都已损坏。每条路由都会返回一个内部服务器错误消息。
这是实际的消息:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.



我已经将存储文件夹权限设置为 777,但我什至没有收到错误日志。

有什么建议么?

最佳答案

首先确保.htaccess文件存在于您的 public_html目录。大多数通过 zip 在 linux 服务器上上传不会自动复制 .htaccess文件,因为它是隐藏的。

关于laravel-5 - 将 Laravel 5 项目部署到主机后,路由无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29586436/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com