【发布时间】:2012-03-14 05:06:36
【问题描述】:
我正在尝试在 NGINX 中设置重写规则,我目前有一些设置 位置/{ 已经为我在该域上的主要网站。 我想在不同的文件夹中安装 wordpress,所以我的 location / { 需要是位置/页面{
我似乎无法为此设置重写规则? 我尝试过的任何帮助都会很棒。
Rewrite rules for wordpress 3.0 (multi-site) for nginx?
好像没用。
使用这个
location /page {
root /home/domain/public_html;
index index.html index.htm index.php;
if (!-e $request_filename ) {
rewrite ^/page/(.*)$ /page/1$ last;
}
}
我需要一些可用于 /page 位置的规则。
【问题讨论】: