- 论坛徽章:
- 0
|
原帖由 flyinwoods 于 2008-7-11 13:08 发表 ![]()
我用BOA在ARM上做的web server,目前我只有一个页面index.html
如果输入IP或者IP/index.html是没有问题的,但是如果输入一个IP/m这个不存在的页面就会出现"Not Found"字样.
那么在web server端怎么设置可以在 ...
楼主的报错应该是404 我说说思路 应该有两种办法可以实现
1 httpd.conf中有
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#相当路径和绝对地址都可以
ErrorDocument 503 /notice.html
您可以将404的报错直接指到你要跳转过去的地址 例如你的index.html
ErrorDocument 404 /index.html
2 就是用
Rewrite来实现 具体该怎样写 暂时不知
收录等高人解答 |
|