开发者

How to configure different Custom Error Pages for Web and Mobile Site?

Is there a way to configure different error pages for different portions of your web app?

Normally, for the web app I 开发者_开发知识库can configure a Custom error page in the web.config. e.g.

<customErrors defaultRedirect="standarderror.aspx" mode="RemoteOnly">
  <error statusCode="404" redirect="filenotfound.htm"/>
</customErrors>

Is there a way I can specify different pages for web and mobile site?


You can create additional web.config file in mobile version subdirectory with only customerrors options.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜