IIS下404问题?

#1 zhgzzy

我租的是IIS的空间
httpd.ini
[ISAPI_Rewrite]
Defend your computer from some worm attacks
RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O]
3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
Protect httpd.ini and httpd.parse.errors files
from accessing through HTTP
Rules to ensure that normal content gets through
For file-based wordpress content (i.e. theme), admin, etc.
For normal wordpress content, via index.php
RewriteRule /public/(.*) /public/$1 [L]
RewriteRule /images/(.*) /images/$1 [L]
RewriteRule /keditor/(.*) /keditor/$1 [L]
RewriteRule /404.html /404.html [L]
RewriteRule /robots.txt /robots.txt [L]

RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /index.php/$1 [L]
404页面已放在根目录下了. 为什么404没用呀,不存在的页面是一个空白页???

2010-08-27 14:58:36

#2 jake

http://speedphp.com/bbs/viewthread.php?tid=716

PS:dispatcher_error的设置是一直都有的,不只在SP3

2010-08-27 15:56:38

#3 zhgzzy

不存在的页面为什么是空白的???

2010-08-27 16:07:26

#4 jake

如果是sp框架的话,可以设置'dispatcher_error' => "spController::jump('/404.html');",

另外,一般的主机都有设置404等页面的后台控制的,你可以咨询一下主机商。

2010-08-27 16:38:43

#5 zhgzzy

谢了,已解决

2010-08-27 16:42:26