location / { try_files $uri $uri/ /index.PHP?$args; } rewrite /wp-admin$ $scheme://$host$uri/ permanent;