• SupportTutorial
  • How to Fix Nginx WordPress Invalid JSON Response Or Permalinks 404 Error

Hello, I suggest you provide more information or screenshots. I can’t tell what the problem is.
Is your website open? Can the backend of the website be opened?

techthelearn

I have downloaded WordPress zip and upload on server then unzipped and create database .

    Hello, is it possible to try to modify the permanent link in the background of the website?

    Just Add it on Config not URL rewrite
    location / {try_files $uri $uri/ /index.php?$args;}

    Hello, would you like to add the content of line 52? Please check whether the configuration of the relevant site is configured correctly.

    techthelearn

    This Is For Your Root

    location / {
        index index.php index.html index.htm;
        try_files $uri $uri/ /index.php?$args;
    }

    If You Change link

    location /post {
        index index.php index.html index.htm;
        try_files $uri $uri/ /index.php?$args;
    }
    8 days later

    Hi, I have checked, when I choose plain in the permalink then its working fine and when I choose post name then getting same error - Publishing failed. The response is not a valid JSON response.

    Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com