Modx 错误页面不会显示
我已经在 modx 中开发了一个网站,但是在将其迁移到实时服务器后,如果我输入一个不存在的页面(例如 http://mysite.com/index.php?id=5) 我收到默认的 IIS 错误页面,而不是工具->配置->站点中指定的页面->错误页面
知道为什么会发生这种情况吗?
根据记录,我在 Apache 上开发,但正在部署到 IIS。
I've developed a site in modx but after migrating it to the live server if I enter a page that doesn't exist (eg http://mysite.com/index.php?id=5) I'm getting the default IIS error page rather than the page specified in Tools->Configuration->site->Error page
Any idea why this could be happening?
For the record I developed on Apache but am deploying to IIS.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我唯一能想到的是 IIS 以某种方式覆盖了 modX 错误页面。
我知道在 Apache 上我可以修改 .htaccess 文件来设置 ErrorDocument,但我不知道 IIS 是如何工作的。
也许之前关于“IIS 上的自定义 404 页面”的问题可能会为您提供一些有关如何设置系统的线索。
The only thing I can think of is that IIS is over-riding the modX error page somehow.
I know on Apache I can fiddle with the .htaccess file to set ErrorDocument, but I don't know how IIS works.
Perhaps previous SO questions on "custom 404 page on IIS" might give you some clues as to how your system is setup.