• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Domain Custom ErrorDocuments

Andriy_Martynyuk

New Pleskian
Parallels Plesk v12.0.18_build1200140606.15 os_RedHat el6/CloudLinux Server 6.6

I try to redirect 404 to a specified page (any variant .htaccess or Home->Subscriptions-><domain>->Websites & Domains-><domain>->Web Server Settings->Additional directives for HTTP) with "Custom error documents" enabled to:
"error/content-not-found.php"

whitch is located ih httpdocs directory, but it gives me the 404 error:
"The requested URL /error/content-not-found.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."


and in logs I see:
"script '/var/www/error/content-not-found.php' not found or unable to stat".
But the site is located in:
"/DATA/www/<domain>/httpdocs"

Please help determining what to do.
 
Back
Top