Nginx规则,把所有http://abc.com/archive/tag/苹果 交给 http://abc.com/cgi-bin/mt/mt-search.cgi?IncludeBlogs=1&tag=苹果 处理
rewrite /archive/tag/(.+)$ /cgi-bin/mt/mt-search.cgi?IncludeBlogs=1&tag=$1 last;
但我在http://abc.com/archive/tag/下有一个http://abc.com/archive/tag/index.html,请问如何改写rewrite使得http://abc.com/archive/tag/会去访问该目录下的index.html文件而不是去请求一个http://abc.com/cgi-bin/mt/mt-search.cgi?IncludeBlogs=1&tag=index.html 呢?
谢谢。
rewrite /archive/tag/(.+)$ /cgi-bin/mt/mt-search.cgi?IncludeBlogs=1&tag=$1 last;
但我在http://abc.com/archive/tag/下有一个http://abc.com/archive/tag/index.html,请问如何改写rewrite使得http://abc.com/archive/tag/会去访问该目录下的index.html文件而不是去请求一个http://abc.com/cgi-bin/mt/mt-search.cgi?IncludeBlogs=1&tag=index.html 呢?
谢谢。