1
sophymax 2014-09-01 21:55:59 +08:00 1
rewrite太过晦涩,你需要的是 rewrite_by_lua 用代码的方式来判断,这篇文章的最后一段对你会有帮助 http://www.codezhai.com/code/openresty-lua-%E5%85%A8%E7%AB%99%E9%9D%99%E6%80%81%E8%B5%84%E6%BA%90copy-%E6%8A%93%E7%AB%99%E7%A8%8B%E5%BA%8F-%E6%95%B4%E7%AB%99%E6%8A%93%E5%8F%96/
|
2
lnkisi 2014-09-01 22:18:02 +08:00 1
将index.html放在另一个目录不就好了
rewrite ^/archive/tag/index.html$ /archive/real_tag/index.html last rewrite ^/archive/tag/(.+)$ /cgi-bin/mt/mt-search.cgi?IncludeBlogs=1&tag=$1 last; |