config.yam为啥404不跳转呢?

管理员 2013-11-08 05:03:37
各位大神我的网站是:http://www.kubo365.com
下面是config.yaml配置:

handle:
- rewrite: if(!is_dir() && !is_file() && path~"^(.*)$") goto "index.php/$1"
- hostaccess: if(path ~ "App") deny "all"
- hostaccess: if(path ~ "ThinkPHP") deny "all"
- errordoc: 404 /my-show-id-error.html
- compress: if ( out_header["Content-type"] ~ "text/html" ) compress
- compress: if ( out_header["Content-type"] ~ "text/css" ) compress
- compress: if ( out_header["Content-type"] ~ "text/javascript" ) compress

为啥404不跳转呢?
比如访问:http://www.kubo365.com/1
不会跳到:http://www.kubo365.com/my-show-id-error.html
...全文
323 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
管理员 2013-11-08
  • 打赏
  • 举报
回复
引用 1 楼 xuzuning 的回复:
handle:
  - rewrite: if(!is_dir() && !is_file()) goto "index.php?%{QUERY_STRING}"
  - errordoc: 404 /404.php
参阅 http://www.yimiju.com/articles/483.html
多谢大神!
xuzuning 2013-11-08
  • 打赏
  • 举报
回复
handle:
- rewrite: if(!is_dir() && !is_file()) goto "index.php?%{QUERY_STRING}"
- errordoc: 404 /404.php

参阅 http://www.yimiju.com/articles/483.html

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧