我的主机服务器是 nginx 。
在我安装了magento的根目录中,然后我创建了一个名为blog的文件,然后在其中安装了wordpress。 现在,目录是:
app
includes
....
blog/wp-admin
当我在永久链接设置中设置http://www.example.com/blog/index.php/%postname%.html
时。访问所有帖子,没关系。现在我想删除index.php。即将其更改为http://www.example.com/blog/%postname%.html
。当我删除index.php时。所有帖子都不可用,
编辑: 我把代码放在nginx.conf中。
location /blog/ {
index index.php;
try_files $uri $uri/ /blog/index.php?$uri&$args;
rewrite ^ /index.php? last;
}
但它不起作用。我有什么东西丢失了吗?