KnowledgeBase Glossary    Contact Us
Browse by Category KnowledgeBase .: Shared Web Hosting on Plesk Servers .: Is it possible to use a PHP webpage (rather than HTML) for error pages such as 404?

Is it possible to use a PHP webpage (rather than HTML) for error pages such as 404?

Yes, you are able to create your own PHP error page. First you need to make sure that you have the "PHP support" selected for this particular domain in your control panel. This can be done by:

  1. Click on your domain name.
  2. For Plesk 5, click on the Hosting button, then the Next button. For Plesk 7.5 Reloaded click on the Setup button.
  3. Check the box next to "PHP support".
  4. Click on the Update button (Plesk 5) or the OK button (Plesk 7.5).

Next you also need to create a .htaccess file in your /httpdocs folder. If you have created a new 404 error document located at /httpdocs/customerrordocs/404.php, your .htaccess file will need to contain the following line:

ErrorDocument 404 /httpdocs/customerrordocs/404.php .

How helpful was this article to you?

Related Articles

article How do I set up custom error message pages (such as 404) on a Plesk 5 hosting account?
These instructions apply to the MDH and...

  7-5-2005    Views: 25317   
article How can I specify error pages (such as 404) using .htaccess?
To add custom error documents you would create...

(No rating)  3-28-2006    Views: 7415   
article How do I create my own custom 404 error pages on a RAQ?
First, you will need to create your custom...

(No rating)  7-21-2005    Views: 13036   

User Comments

No comments have been posted.

.: Powered by Lore 1.5.4
Copyright 2005-2014 Advantagecom Networks, Inc. - Xen Linux Virtual Private Servers (VPS) - Paypal Accepted