Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Rexford Haugen

    (@rexhaugen)

    If anyone else runs into the issue of robots.txt returning a 404 on NGINX, if have anything like the following in your configs, it will break the virtual robots.txt support in WordPress:

    location = /robots.txt {
            allow all;
            log_not_found off;
            access_log off;
    }

    I solved this issue by adding the following within that statement:

    try_files $uri $uri/ /index.php;

    Plugin Author Viktor Szépe

    (@szepeviktor)

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is this plugin compatible with NGINX?’ is closed to new replies.