thomasbennett If you visit any website on the server with a PHP file extension (outside of the uploads) like example.com/test.php it uses the Nginx 404 page instead of the WordPress 404 page. By default, it should look to WordPress so we can manipulate the 404 page.
thomasbennett Seems like we need something this: ` location ~ .php$ { try_files $uri @missing; include fastcgi_params; fastcgi_pass php73; } location @missing { rewrite ^/(.*)\.php /$1/ permanent; include fastcgi_params; fastcgi_pass php73; }
VirtuBox Hello thomasbennett, I'm not sure it should be implemented in WordOps because in my opinion, it's a bad practice to have non-WordPress php files in a WordPress directory, so it doesn't make sense to me to handle 404 with WordPress.