Nginx WordPress伪静态rewrite rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last; if (!-e $request_filename) { rewrite ^.+?(/wp-.*) $1 last; rewrite ^.+?(/.*\.php)$ $1 last; rewrite ^ /index.php last; } 将上述代码插入: (1)/usr/local/nginx/conf/vhosts.conf (普通) (2)/usr/local/nginx/conf/vhost/domain.conf (LNMP http://lnmp.org/) server {…} 中, 重启 nginx(/etc/init.d/nginx restart) 即可生效。