+ Reply to Thread
Results 1 to 4 of 4
Like Tree4Likes
  • 4 Post By descalzo

Thread: How to change your error pages?

  1. #1
    neosurfer2695 is offline x10Hosting Member neosurfer2695 is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    48

    How to change your error pages?

    Hi there!
    So I was wonder how you change the error pages on your website.
    Does anyone know?
    I have free hosting.

    Thanks,

    -Rothtech
    www.rotholtz.com

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: How to change your error pages?

    The way I do it.

    1. Create a subdirectory of public_html to house the pages. I call it 'error' or 'errors'.
    2. Create the html files in that directory. I usually name them 404.html etc after the error codes.
    3. Go to public_html and open .htaccess to edit
    4. Add lines:

    ErrorDocument 403 /error/403.html
    ErrorDocument 404 /error/404.html
    ErrorDocument 500 /error/500.html

    Save the file.

    5. Try to access a nonexistent file to test.

    Note: If you do not see .htaccess in File Manager, close File Manager. At the bottom of cPanel main page, click on reset all interface settings and then click on File Manage. On dialog box that pops up, check "Display hidden (dot) files". That should make .htaccess show up.
    Nothing is always absolutely so.

  3. #3
    neosurfer2695 is offline x10Hosting Member neosurfer2695 is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    48

    Re: How to change your error pages?

    Wait!
    I got it!
    Last edited by neosurfer2695; 04-17-2010 at 04:22 PM.

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: How to change your error pages?

    Using cPanel File Manager, when you are in public_html , click on "New Folder" icon, upper left of page. Name it what you want.
    FTP client should have similar capacity.

    You don't have to put them in their own directory, but I like to keep things neat.
    Nothing is always absolutely so.

+ Reply to Thread

Similar Threads

  1. Error Pages
    By zcosgrov in forum Free Hosting
    Replies: 3
    Last Post: 11-12-2009, 04:02 PM
  2. error pages
    By sajidsajid in forum Programming Help
    Replies: 12
    Last Post: 09-26-2008, 06:53 AM
  3. Error Pages
    By Alejandro in forum Free Hosting
    Replies: 2
    Last Post: 08-23-2005, 09:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers