Skip to content Contact us: +34 944 58 06 58 Plesk Partner Program Plesk Lifecycle Policy Blog Contact us Plesk 360 Menu Contact us: +34 944 58 06 58 Plesk Partner Program Plesk Lifecycle Policy Blog Contact us Plesk 360 Solutions By Role Developers Content Managers Digital Agencies IT Admins Web Hosters Hyperscalers Menu Developers Content Managers Digital Agencies IT Admins Web Hosters Hyperscalers By Edition Web Admin Edition Web Pro Edition Web Host Edition Business & Collaboration Plesk WordPress Edition Menu Web Admin Edition Web Pro Edition Web Host Edition Business & Collaboration Plesk WordPress Edition By Cloud Amazon Web Services Microsoft Azure Alibaba Cloud GCP Marketplace Vultr DigitalOcean Linode Menu Amazon Web Services Microsoft Azure Alibaba Cloud GCP Marketplace Vultr DigitalOcean Linode Partner Program Exclusive discounts, benefits and exposure to take your business to the next level Become a partner Product Explore Features Everyone Admins & Web Hosters Developers Designers & Agencies Plesk Features Menu Everyone Admins & Web Hosters Developers Designers & Agencies Plesk Features Key Topics WordPress Toolkit SEO Toolkit Plesk eCommerce Toolkit Joomla! Toolkit Plesk Premium Email Plesk Email Security Menu WordPress Toolkit SEO Toolkit Plesk eCommerce Toolkit Joomla! Toolkit Plesk Premium Email Plesk Email Security Feature Packs Business & Collaboration WordPress Pack Hosting Pack Power Pack Language Pack Menu Business & Collaboration WordPress Pack Hosting Pack Power Pack Language Pack Featured Extension WordPress Pack Pricing Extensions Help Center More Careers Events Plesk University FREE TRIAL Solutions By Role Developers Content Managers Digital Agencies IT Admins Web Hosters Hyperscalers By Edition Web Admin Edition Web Pro Edition Web Host Edition Business & Collaboration WordPress Edition By Cloud Amazon Web Services Microsoft Azure Alibaba Cloud GCP Marketplace Vultr DigitalOcean Linode Partner Program Partner Program Product Explore Features Everyone Admins & Web Hosters Developers Designers & Agencies Plesk Features Key Topics WordPress Toolkit SEO Toolkit Plesk eCommerce Toolkit Joomla! Toolkit Plesk Premium Email Plesk Email Security Feature Packs Business & Collaboration WordPress Pack Hosting Pack Power Pack Language Pack Featured Extension Extension Pricing Extensions Help center More Careers Events Webinars Plesk University Blog Plesk Partner Program Contact Us FREE TRIAL Menu Solutions By Role Developers Content Managers Digital Agencies IT Admins Web Hosters Hyperscalers By Edition Web Admin Edition Web Pro Edition Web Host Edition Business & Collaboration WordPress Edition By Cloud Amazon Web Services Microsoft Azure Alibaba Cloud GCP Marketplace Vultr DigitalOcean Linode Partner Program Partner Program Product Explore Features Everyone Admins & Web Hosters Developers Designers & Agencies Plesk Features Key Topics WordPress Toolkit SEO Toolkit Plesk eCommerce Toolkit Joomla! Toolkit Plesk Premium Email Plesk Email Security Feature Packs Business & Collaboration WordPress Pack Hosting Pack Power Pack Language Pack Featured Extension Extension Pricing Extensions Help center More Careers Events Webinars Plesk University Blog Plesk Partner Program Contact Us FREE TRIAL Knowledge Base Website pages based on WordPress show “404 Not Found” when PHP-FPM by Nginx and Proxy Mode are used apacheplesk onyx for linuxupdatestechnical questionsssh Symptoms Website pages based on WordPress show below error on all pages except the main one: 404 Not Found when: FPM application served by nginx is set in Domains > example.com > PHP Settings Proxy Mode is enabled at Domains > example.com > Apache & nginx Settings. Non Plain is set in WordPress Dashboard > Settings > Permalinks type WordPress REST API point (wp-api) shows 404 error. It can be checked by accessing http://example.com/wp-json/wp/v2/posts Cause WordPress detects that php files are handled by Nginx and doesn’t generate .htaccess file. At the same time permalinks continues to be served by Apache when Proxy mode is enabled.Since .htaccess with Apache rewrite rules doesn’t exist WordPress shows 404 error for pages. The behavior that PHP continues to be served by Apache when Proxy mode is enabled is caused by a bug with the ID #PPPM-11234, which is planned to be fixed in future Plesk updates. Resolution One of below workarounds can be used: Switch PHP handler to “PHP-FPM serverd by Apache”(preferred workaround) Log into Plesk Go to Domains > example.com > PHP Settings Set PHP FPM application served by Apache and click on OK Go to Domains > example.com > WordPress > Log in Go to Settings > Permalinks Click on Save Changes Via Plesk GUI(using .htaccess file) Log into Plesk Go to Domains > example.com > File Manager > httpdocs Create the .htaccess with following content: # BEGIN WordPress#Skip - to - content - Contact - us: - +34 - 944 - 58 - 06 - 58 - Plesk - Partner - Program - Plesk - Lifecycle - Policy - Blog - Contact - us - Plesk - 360 - Menu - Contact - us: - +34 - 944 - 58 - 06 - 58 - Plesk - Partner - Program - Plesk - Lifecycle - Policy - Blog - Contact - us - Plesk - 360 - Solutions - By - Role - Developers - Content - Managers - Digital - Agencies - IT - Admins - Web - Hosters - Hyperscalers - Menu - Developers - Content - Managers - Digital - Agencies - IT - Admins - Web - Hosters - Hyperscalers - By - Edition - Web - Admin - Edition - Web - Pro - Edition - Web - Host - Edition - Business - & - Collaboration - Plesk - WordPress - Edition - Menu - Web - Admin - Edition - Web - Pro - Edition - Web - Host - Edition - Business - & - Collaboration - Plesk - WordPress - Edition - By - Cloud - Amazon - Web - Services - Microsoft - Azure - Alibaba - Cloud - GCP - Marketplace - Vultr - DigitalOcean - Linode - Menu - Amazon - Web - Services - Microsoft - Azure - Alibaba - Cloud - GCP - Marketplace - Vultr - DigitalOcean - Linode - Partner - Program - Exclusive - discounts - - benefits - and - exposure - to - take - your - business - to - the - next - level - Become - a - partner - Product - Explore - Features - Everyone - Admins - & - Web - Hosters - Developers - Designers - & - Agencies - Plesk - Features - Menu - Everyone - Admins - & - Web - Hosters - Developers - Designers - & - Agencies - Plesk - Features - Key - Topics - WordPress - Toolkit - SEO - Toolkit - Plesk - eCommerce - Toolkit - Joomla! - Toolkit - Plesk - Premium - Email - Plesk - Email - Security - Menu - WordPress - Toolkit - SEO - Toolkit - Plesk - eCommerce - Toolkit - Joomla! - Toolkit - Plesk - Premium - Email - Plesk - Email - Security - Feature - Packs - Business - & - Collaboration - WordPress - Pack - Hosting - Pack - Power - Pack - Language - Pack - Menu - Business - & - Collaboration - WordPress - Pack - Hosting - Pack - Power - Pack - Language - Pack - Featured - Extension - WordPress - Pack - Pricing - Extensions - Help - Center - More - Careers - Events - Plesk - University - FREE - TRIAL - Solutions - By - Role - Developers - Content - Managers - Digital - Agencies - IT - Admins - Web - Hosters - Hyperscalers - By - Edition - Web - Admin - Edition - Web - Pro - Edition - Web - Host - Edition - Business - & - Collaboration - WordPress - Edition - By - Cloud - Amazon - Web - Services - Microsoft - Azure - Alibaba - Cloud - GCP - Marketplace - Vultr - DigitalOcean - Linode - Partner - Program - Partner - Program - Product - Explore - Features - Everyone - Admins - & - Web - Hosters - Developers - Designers - & - Agencies - Plesk - Features - Key - Topics - WordPress - Toolkit - SEO - Toolkit - Plesk - eCommerce - Toolkit - Joomla! - Toolkit - Plesk - Premium - Email - Plesk - Email - Security - Feature - Packs - Business - & - Collaboration - WordPress - Pack - Hosting - Pack - Power - Pack - Language - Pack - Featured - Extension - Extension - Pricing - Extensions - Help - center - More - Careers - Events - Webinars - Plesk - University - Blog - Plesk - Partner - Program - Contact - Us - FREE - TRIAL - Menu - Solutions - By - Role - Developers - Content - Managers - Digital - Agencies - IT - Admins - Web - Hosters - Hyperscalers - By - Edition - Web - Admin - Edition - Web - Pro - Edition - Web - Host - Edition - Business - & - Collaboration - WordPress - Edition - By - Cloud - Amazon - Web - Services - Microsoft - Azure - Alibaba - Cloud - GCP - Marketplace - Vultr - DigitalOcean - Linode - Partner - Program - Partner - Program - Product - Explore - Features - Everyone - Admins - & - Web - Hosters - Developers - Designers - & - Agencies - Plesk - Features - Key - Topics - WordPress - Toolkit - SEO - Toolkit - Plesk - eCommerce - Toolkit - Joomla! - Toolkit - Plesk - Premium - Email - Plesk - Email - Security - Feature - Packs - Business - & - Collaboration - WordPress - Pack - Hosting - Pack - Power - Pack - Language - Pack - Featured - Extension - Extension - Pricing - Extensions - Help - center - More - Careers - Events - Webinars - Plesk - University - Blog - Plesk - Partner - Program - Contact - Us - FREE - TRIAL - Knowledge - Base - Website - pages - based - on - WordPress - show - “404 - Not - Found” - when - PHP-FPM - by - Nginx - and - Proxy - Mode - are - used - apacheplesk - onyx - for - linuxupdatestechnical - questionsssh - Symptoms - Website - pages - based - on - WordPress - show - below - error - on - all - pages - except - the - main - one: - 404 - Not - Found - when: - FPM - application - served - by - nginx - is - set - in - Domains - > - example.com - > - PHP - Settings - Proxy - Mode - is - enabled - at - Domains - > - example.com - > - Apache - & - nginx - Settings. - Non - Plain - is - set - in - WordPress - Dashboard - > - Settings - > - Permalinks - type - WordPress - REST - API - point - (wp-api) - shows - 404 - error. - It - can - be - checked - by - accessing - http://example.com/wp-json/wp/v2/posts - Cause - WordPress - detects - that - php - files - are - handled - by - Nginx - and - doesn’t - generate - .htaccess - file. - At - the - same - time - permalinks - continues - to - be - served - by - Apache - when - Proxy - mode - is - enabled.Since - .htaccess - with - Apache - rewrite - rules - doesn’t - exist - WordPress - shows - 404 - error - for - pages. - The - behavior - that - PHP - continues - to - be - served - by - Apache - when - Proxy - mode - is - enabled - is - caused - by - a - bug - with - the - ID - #PPPM-11234 - - which - is - planned - to - be - fixed - in - future - Plesk - updates. - Resolution - One - of - below - workarounds - can - be - used: - Switch - PHP - handler - to - “PHP-FPM - serverd - by - Apache”(preferred - workaround) - Log - into - Plesk - Go - to - Domains - > - example.com - > - PHP - Settings - Set - PHP - FPM - application - served - by - Apache - and - click - on - OK - Go - to - Domains - > - example.com - > - WordPress - > - Log - in - Go - to - Settings - > - Permalinks - Click - on - Save - Changes - Via - Plesk - GUI(using - .htaccess - file) - Log - into - Plesk - Go - to - Domains - > - example.com - > - File - Manager - > - httpdocs - Create - the - .htaccess - with - following - content: - # - BEGIN - WordPress# -