Конфиг для nginx для размещения вордпресса в подпапке
server { listen 80; server_name topdomain.ru; # blog, in wp location ^~ /blog/ { location ~ \.php$ { include fastcgi_params; fastcgi_intercept_errors on; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass fpm_w3; } location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { expires max; log_not_found off; } location ^~ /blog/wp-content/uploads/ { expires max; log_not_found off; } try_files $uri $uri/ /blog/index.php?$args; } }