分享

写回答

发帖

[提问] godaddyWindows主机 404单独设置

GoDaddy GoDaddy 562 人阅读 | 4 人回复

发表于 2010-10-28 11:46:50 | 显示全部楼层 |阅读模式

godaddyWindows主机 的用web.config文件 设置404页面.

web.config文件每个网站的根目录都要上传吗?

web.config 代码告诉

回答|共 4 个

add.c

发表于 2010-10-28 11:54:59 | 显示全部楼层

是的。 参考这里GoDaddy 500错误解决

brand918

发表于 2010-10-28 13:47:36 | 显示全部楼层

404 是这些吗?

<?xml version="1.0" encoding="utf-8" ?>

<configuration>
  <system.web>
    <customErrors mode="On" default Redirect="mycustompage.htm"/>
  </system.web>
</configuration>
RAKSmart

brand918

发表于 2010-10-28 13:51:12 | 显示全部楼层

我加上进去,打开不存在页面

页面内容是:

Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

add.c

发表于 2010-10-28 14:00:25 | 显示全部楼层

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.web>
<customErrors mode="On" default Redirect="mycustompage.htm"/>
  </system.web>
</configuration>

这里的mycustompage.htm为你的404错误页面, 这个设置是没问题的。 是否和你其他配置文件冲突了?
RAKSmart
您需要登录后才可以回帖 登录 | 注册

本版积分规则