The response is not a valid JSON response. Permalink issues.

The response is not a valid JSON response. Permalink issues.

Domain is set for NGINX as a proxy server to Apache and there are any of the errors or similar:

  1. The response is not a valid JSON response.
  2. Permalinks are not working
  3. Selecting Dashboard in Wordpress does not do anything
  4. www.domain.com/wp-admin doesn't load correctly
Verify the NGINIX / Apache settings are correct:

  1. PHP settings are set to FPM application served by NGINX
  2. .htaccess is renamed to .htaccess.bak
  3. Apache & NGINX settings
    1. Enable nginx caching
    2. Cache size: 128MB
    3. Additional nginx directives:
if (!-e $request_filename) {
set $test P;
}
if ($uri !~ ^/(plesk-stat|webstat|webstat-ssl|ftpstat|anon_ftpstat|awstats-icon|internal-nginx-static-location|status_phpfpm)) {
set $test "${test}C";
}
if ($test = PC) {
rewrite ^/(.*)$ /index.php?$1;
}