Frequently Asked Questions

FAQ / Plesk

How To Create Custom Error Pages In Plesk?

Creating custom error pages in Plesk is a straightforward process. Here s a step-by-step guide:

Step 1 : Log in to Plesk:

  • Open your web browser and log in to your Plesk control panel with your credentials.

Step 2: Navigate to the Domain:

  • On the left sidebar, click on "Websites & Domains."
  • Select the domain for which you want to create custom error pages.

Step 3: Access Hosting Settings:

  • Under the selected domain, click on "Hosting Settings."

Step 4: Enable Custom Error Documents:

  • Scroll down to the "Web Scripting and Statistics" section.
  • Check the box for "Custom error documents."
  • Click "OK" or "Apply" to save the changes.

Step 5: Create Custom Error Pages:

  • Using an FTP client or the Plesk File Manager, navigate to the "error_docs" directory within your domain s root directory (usually located at httpdocs/error_docs).
  • Upload your custom error page files (e.g., 404.html, 500.html, etc.) to this directory.

Step 6: Specify Custom Error Pages:

  • Return to the Plesk control panel.
  • Click on "Websites & Domains" again, and then click on "Apache & Nginx Settings" under the selected domain.
  • Scroll down to the "Error documents" section.
  • Specify the custom error pages by selecting the appropriate error code (e.g., 404, 500) and the corresponding file (e.g., 404.html).

Step 7: Save the Settings:

  • Click "OK" or "Apply" to save the changes.

Step 8: Verify the Custom Error Pages:

  • Test the custom error pages by intentionally causing the errors (e.g., navigating to a non-existent page for a 404 error) to ensure they display correctly.

By following these steps, you can easily create and configure custom error pages for your domain in Plesk, enhancing the user experience for your website visitors.