< ![CDATA[
通过实验,本人还发现,貌似那些地址必须要按照字母降序来排才能个个生效
于是乎,本人亲测有效的地址是这样的
- compress: if ( out_header["Content-type"] ~ "text/css" ) compress - compress: if ( out_header["Content-type"] ~ "text/javascript" ) compress - compress: if ( out_header["Content-type"] ~ "text/html" ) compress - rewrite: if( in_header["Host"] !~ "blog.zhaojin97.cn" && path ~ "(.*)" ) goto "http://blog.zhaojin97.cn$1?%{QUERY_STRING}" - rewrite: if(path ~ "admin.html") goto "login.php" - rewrite: if(path ~ "project.html") goto "project.php" - rewrite: if(path ~ "list.html") goto "blog.php" - rewrite: if(path ~ "t.html") goto "t.php" - rewrite: if(path ~ "list-(d+).html") goto "blog.php?page=$1" - rewrite: if(path ~ "read-(d+).html") goto "blog.php?id=$1" - rewrite: if(path ~ "t-(d+).html") goto "t.php?page=$1"
]]>