nginx 开启伪静态
location /
{
try_files $uri $uri/ /index.php?$args;
add_header Access-Control-Allow-Origin "*" always;
add_header Access-Control-Allow-Methods 'GET,POST,OPTIONS';
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
Comments NOTHING