WordPress: 404 Not Found Even with .htaccess
The issue started when customer website is using WordPress and when accessing another page URL it comes with 404 Not Found. Even when you added .htaccess into public doc folder, it is not functioned. Why? It is because the web server backend only applied for nginx and php-fpm only.
Solving 1
Try to change php handler from Nginx served by php-fpm into Nginx served by Fastcgi only. So make sure the backend web server used is Apache, not nginx standalone.
Solving 2
For some cases, option Nginx served by FastCGI may not available at that time for some reasons. Therefore, try this Plesk link.
For One Website only that affected, In Plesk, add the content below to the Additional nginx directives field of the WordPress domain at Domains > example.com > Apache & nginx Settings > Write into 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)) {
set $test "${test}C";
}
if ($test = PC) {
rewrite ^/(.*)$ /index.php?$1;
}
