Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    1

    Angry 404 Error Page

    From cPanel home I click Error Pages->404

    I enter the details of the page and I save as 404.php. Although the 404.php page is saved, it is not displayed when I visit a page that doesn't exist. When I return to edit the 404 page it has reverted back to .shtml ..

    Is there a way to make my default 404 page PHP? I could use a meta tag to refresh the page but I don't want search engines to consider my site junk.

    Thanks in advance.

  2. #2
    Member outlaw web's Avatar
    Join Date
    Mar 2006
    Posts
    45

    Default well

    why not just use the redirect function???

    OWM
    Last edited by outlaw web; 07-17-2007 at 11:18 AM.
    I never think of the future - it comes soon enough......

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    When I used to do ErrorPages on a cPanel/WHM server, I bypassed the nice GUI for it and went straight to the .htaccess file for more control. You can add your ErrorDocument directives there to point to your PHP file and ignore the .shtml files.

    Documentation for Apache 1.3's implementation of ErrorDocument:
    http://httpd.apache.org/docs/1.3/mod...#errordocument

    Of course, you could always do a kludge and have .shtml files parsed by the PHP interpreter. I advise against this because of the potential for unnecessary server load.

Similar Threads & Tags
Similar threads

  1. 404 Error Page help required
    By Andre Montaut in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-14-2011, 04:00 PM
  2. page not found error 404
    By grossman11 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-12-2010, 01:49 AM
  3. global 404 error page. Is it possible??
    By bsasninja in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 06-19-2008, 12:59 AM
  4. Munin 404 error page
    By kistler in forum cPanel Developers
    Replies: 5
    Last Post: 08-03-2006, 12:36 PM
  5. 404 error when adding custom 404 page.
    By VS-Lap in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-06-2002, 11:01 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube