1. 程式人生 > >wordpress文章釋出後,nginx報404解決方法

wordpress文章釋出後,nginx報404解決方法

修改nginx.conf檔案,在location /節點下新增如下程式碼:

location / {        
    try_files $uri $uri/ /index.php?q=$uri&$args; 
}

然後重啟nginx即可解決。