- Plesk for Linux
Web-pages on a Magento website show error:
PLESK_INFO: 404 Not Found
Proxy mode is disabled at Domains > example.com > Apache & Nginx Settings.
PHP is set as FPM application served by nginx at Domains > example.com > PHP Settings.
A website page may be accessible when a trailing slash is removed from the URL, for example https://example.com/customer/account/login instead of https://example.com/customer/account/login/ .
When Proxy mode is disabled or PHP is set as FPM application served by nginx in domain's settings, the website is being served by nginx, with which the .htaccess file does not work.
Apply one of the following solutions:
Enable nginx as a proxy mode and let Apache serve requests:
- Disable Proxy mode at Domains > example.com > Apache & Nginx Settings.
- Switch the domain to FPM application served by Apache at Domains > example.com > PHP Settings.
Configure rewrite rules for nginx in the Additional Nginx directives field at Domains > example.com > Apache & nginx Settings. To convert existing rewrite rules from .htaccess file to nginx rewrite rules, refer to this nginx documentation page or try using the Plesk htaccess to nginx extension.