{"id":4927,"date":"2019-04-01T02:17:14","date_gmt":"2019-04-01T02:17:14","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=4927"},"modified":"2019-04-01T02:17:14","modified_gmt":"2019-04-01T02:17:14","slug":"after-switching-a-wordpress-website-to-fpm-served-by-nginx-in-plesk-it-fails-to-load-with-404-not-found-on-all-pages-except-start-page","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2019\/04\/01\/after-switching-a-wordpress-website-to-fpm-served-by-nginx-in-plesk-it-fails-to-load-with-404-not-found-on-all-pages-except-start-page\/","title":{"rendered":"After switching a WordPress website to FPM served by nginx in Plesk, it fails to load with &#8220;404 Not Found&#8221; on all pages except start page"},"content":{"rendered":"<p>After switching a WordPress website to FPM served by nginx in Plesk, it fails to load with &#8220;404 Not Found&#8221; on all pages except start page. <\/p>\n<p>See: https:\/\/support.plesk.com\/hc\/en-us\/articles\/213912945-A-WordPress-website-on-a-Plesk-server-shows-404-Not-Found-on-all-pages-except-index-php-when-running-on-FPM-by-nginx<\/p>\n<p>For one website<\/p>\n<p>    In Plesk, add the content below to the Additional nginx directives field of the WordPress domain at Domains > example.com > Apache &#038; nginx Settings:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n    if (!-e $request_filename) {\n    set $test P;\n    }\n    if ($uri !~ ^\/(plesk-stat|webstat|webstat-ssl|ftpstat|anon_ftpstat|awstats-icon|internal-nginx-static-location)) {\n    set $test &quot;${test}C&quot;;\n    }\n    if ($test = PC) {\n    rewrite ^\/(.*)$ \/index.php?$1;\n    }\n\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After switching a WordPress website to FPM served by nginx in Plesk, it fails to load with &#8220;404 Not Found&#8221; on all pages except start page. See: https:\/\/support.plesk.com\/hc\/en-us\/articles\/213912945-A-WordPress-website-on-a-Plesk-server-shows-404-Not-Found-on-all-pages-except-index-php-when-running-on-FPM-by-nginx For one website In Plesk, add the content below to the Additional nginx directives field of the WordPress domain at Domains > example.com > Apache &#038; nginx &#8230; <a title=\"After switching a WordPress website to FPM served by nginx in Plesk, it fails to load with &#8220;404 Not Found&#8221; on all pages except start page\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2019\/04\/01\/after-switching-a-wordpress-website-to-fpm-served-by-nginx-in-plesk-it-fails-to-load-with-404-not-found-on-all-pages-except-start-page\/\" aria-label=\"Read more about After switching a WordPress website to FPM served by nginx in Plesk, it fails to load with &#8220;404 Not Found&#8221; on all pages except start page\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86],"tags":[],"class_list":["post-4927","post","type-post","status-publish","format-standard","hentry","category-plesk"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/4927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=4927"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/4927\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=4927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=4927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=4927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}