Silverstripe不能在Plesk服务器上工作


Silverstripe not working on Plesk Server

我正在尝试创建一个运行在SilverStripe 3.0上的新域。我无法解决这个问题。如果我上传一个自定义php页面,那么它运行良好,但我的网站不工作。它显示空白页,但显示favico。

如果我尝试打开www.mydomain.com/admin/,我得到错误

Page Not Found The requested URL /admin/pages was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

这不是一个Silverstripe错误页面。这是我的php info info

如果我遗漏了什么,或者有什么方法可以解决这个问题,请告诉我。

试试www.yourdomain.com/index.php/admin

如果成功了,那是因为你的重写没有成功。这可能是因为。htaccess没有正确配置,或者因为。htaccess根本没有被使用(在这种情况下,你需要编辑你的服务器配置)。

最后我使用Plesk,它总是使用apache。如果你现在使用nginx作为一个转发代理,那么你需要手动设置你的网站的重定向。

听起来你的。htaccess没有被尊重。Plesk是否允许覆盖本地目录中的。htaccess ?

在apache级别,我们会有像这样的一节来确保项目的。htaccess被尊重;

AllowOverride所有

如果您的。htaccess正在被处理,请确保您的主机启用了mod_rewrite,因为这是访问漂亮url所必需的。