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

    Default Custom error page not used

    A custom error page, called 404.shtml, placed 1 day ago, in /public_html/, is not being used. What could be the reason? How to remedy this?
    Thanks!

  2. #2
    Registered User
    Join Date
    Sep 2007
    Posts
    2

    Default Solution to missing custom 404 page

    Found the solution in an old thread.
    Just in case someone with the same problem stumbles on this question:

    What the cPanel documentation does not tell is that one has to make an entry in the corresponding
    .htaccess file (generally the one in the public_html folder).

    The entry in the .htaccess file should look like:
    ErrorDocument CODENUMBER ERRORFILE

    E.g:
    ErrorDocument 404 /custom-404.shtml

    --
    One can also make specific error codes for subdomains by modifying the .htaccess file in the subdomain's directory and placing the subdomain-specific error page there.

    The full info is available on:
    http://support.hostgator.com/index.p...barticleid=312

    Enjoy

    M

Similar Threads & Tags
Similar threads

  1. Custom error page -401 - email me their ip?
    By mick3578 in forum E-mail Discussions
    Replies: 0
    Last Post: 07-23-2009, 11:55 PM
  2. Custom Error page HELP please
    By GMawston in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-27-2008, 10:46 AM
  3. Trouble with Tags in custom error page
    By macnmotion in forum New User Questions
    Replies: 0
    Last Post: 05-09-2007, 03:19 PM
  4. IP Deny Manager Custom Error Page?
    By Mikee[K-9] in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-14-2003, 05:23 AM
  5. Custom Error Page Are Very Picky!!!
    By nitromax in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-26-2002, 10:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube