【发布时间】:2014-10-23 17:32:25
【问题描述】:
使用 cpanel 我已将 laravel 应用程序上传到服务器。在开发过程中,我使用了 MAMP,它运行良好。
当我将应用程序上传到我的主机服务器时,我只能看到第一页:
http://myurl.com/appname/public/
当我尝试导航时,我总是收到此错误:
Not Found
The requested URL /myurl.com/appname/public/account/sign-in was not found on this server.
有什么问题? laravel 应用有什么特殊的配置吗?
编辑: .htaccess 文件内容:
Options -Indexes
SetEnv DEFAULT_PHP_VERSION 55
我尝试像这样添加RewriteBase /:
Options -Indexes
SetEnv DEFAULT_PHP_VERSION 55
RewriteBase /
但它也不起作用。
我正在使用这个主机https://www.ecowebhosting.co.uk/?page=webhosting&tab=advanced
【问题讨论】: