配置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.
逐个参试,/代表

本文探讨了在配置WordPress MU过程中遇到的问题,特别是与Nginx rewrite规则相关的挑战。文章详细解释了try_files指令的工作原理及其在解决路径重写问题上的应用。
1938

被折叠的 条评论
为什么被折叠?



