开发者

Modx error page won't display

开发者 https://www.devze.com 2022-12-24 06:27 出处:网络
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

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 specifie开发者_开发知识库d 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号