Laravel不在Ubuntu中加载内部页面 - 找不到404

Jis*_*had 5 apache ubuntu .htaccess routes laravel-4

我开发了一个laravel Web应用程序并在实时服务器上运行良好,现在我正在尝试将该项目迁移到本地服务器,

我正在使用Ubuntu 14.04,内置php,apache和mysql.

当我在浏览器中指向localhost/xxxxxxx /(登录页面)时工作正常,在登录表单中输入值后,它显示404 Not Found错误.

我怎么能解决这个问题,请帮忙..

Jis*_*had 27

这个问题归功于Htaccess.

跑

sudo a2enmod rewrite
Run Code Online (Sandbox Code Playgroud)

和

sudo service apache2 restart
Run Code Online (Sandbox Code Playgroud)

另请在位于/ etc/apache2的apache.conf文件中进行更改

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>
Run Code Online (Sandbox Code Playgroud)

工作得很好.!!!!!