nginx rewrite 学习备忘

来源:互联网 发布:单片机延时1s程序汇编 编辑:程序博客网 时间:2024/06/09 22:36

配置wordpressMU的时候,碰到了一些问题。应该是和nginx 的rewrite规则有关。

即使站点建立在跟目录下也是如此。

所以。。来看下nginx 的rewrite ,希望有帮助,

try_files:

Checks for the existence of files in order, and returns the first file that is found. A trailing slash indicates a directory -$uri /. In the event that no file is found, an internal redirect to the last parameter is invoked. Do note that only the last parameter causes an internal redirect, former ones just sets the internal URI pointer. The last parameter is the fallback URI and *must* exist, or else an internal error will be raised. Named locations can be used. Unlike with rewrite, $args are not automatically preserved if the fallback is not a named location.

逐个参试,/代表



0 0
原创粉丝点击