那遇到这个情况,我们如何设置Magento 的伪静态呢?

这里我们没有找到Magento伪静态规则。
location / {
index index.html index.php; ## Allow a static html file to be shown first
try_files $uri $uri/ @handler;
expires 30d;
}
location /var/export/ { ## Allow admins only to view export folder
auth_basic "Restricted"; ## Message shown in login window
auth_basic_user_file htpasswd; ## See /etc/nginx/htpassword
autoindex on;
}
location /. { ## Disable .htaccess and other hidden files
return 404;
}
location @handler { ## Magento uses a common front handler
rewrite / /index.php;
}
location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler
rewrite ^(.*.php)/ $1 last;
}这里我们直接输入后,点击保存为模板。

我们保存之后,设置一个模板名称。保存提交之后,我们再选择Magento设置好的伪静态规则即可。