亲啊嘴金,发布于:2010-07-09 13:21:58 | 903 浏览

新浪SAE云AppConfig配置白话文

http://blog.sae.sina.com.cn/?p=93,赠送新浪SAE邀请码,微博赠送新浪SAE邀请码,邀请SAE。开放注册。
这篇文章我可是仔仔细细端详了一下午,绝对不少于5个小时。而且我在端详的时候就发现了错误,现在已经提交官方修改过来了。- directoryindex: 配置、- errordoc: 配置都比较好懂。除此之外就写得比较难懂了。
比如我要index.php?page=* 翻页代码伪静态到目录如何做?
  - rewrite: if(path ~ "^paged*$") goto "index.php?page=$1" (/page1)
我要访问一个文件,而这个文件我要他跳转怎么做呢?
  - rewrite: if(path ~ "old" && is_file()) goto "/new"
我要一个目录式样的请求跳转怎么做呢?/dir?url=aaa(dir目录不存在的情况下)
  - rewrite: if(!is_dir()) goto "index.php?%{QUERY_STRING}"
我要一个文件式样的请求跳转怎么做呢?/dir.html?url=aaa(dir.html文件不存在的情况下)
  - rewrite: if(!is_file()) goto "index.php?%{QUERY_STRING}"
http://yunphp.sinaapp.com/source/show/-data1-www-htdocs-14-yunphp-1-Doc-saeUrlRewrite.txt
  1. 上一篇:视觉冲击,这不是曾轶可