首页 > 解决方案 > 404 在服务器上发布后找不到 laravel 5.2

问题描述

在 ubuntu 服务器 16.04 上部署项目后,在 laravel 5.2 上找不到错误 404

我授予了存储权限,我也在项目的公共文件夹中创建了虚拟主机及其目录

Not Found
The requested URL /login was not found on this server.

Apache/2.4.18 (Ubuntu) Server at www.xxx.com Port 80

laravel 主页显示,但没有什么比登录和注册更有效

标签: laravel

解决方案


i got the answer

you should run this on server:

a2enmod rewrite

that worked perfectly! xD


推荐阅读