nginx 怎么给一个wordpress网站设置网站静态文件

如题所述

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

# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;

以上代码是我的配置,或许你可以试试看。

温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答
大家正在搜