Closed Thread
Results 1 to 7 of 7
Like Tree3Likes
  • 1 Post By 2enetwork
  • 2 Post By Zubair

Thread: Custom Error Pages

  1. #1
    2enetwork is offline x10Hosting Member 2enetwork is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    9

    Custom Error Pages

    Hi! I tried to setup custom error pages for my site using the htaccess file located under public_html, and when I type in a wrong address, it will not pull up my 404 error, instead, it will show the browsers default 404 error page. Any clue why this is happening, and how do I fix it?

    Now here is the strange part, I went to check and see if my pages were able to be viewed on the site, and I would get redirected to x10hosting's 404 error (why) but when I would try to get a 404 error, I would get the browser's default 404 error page.

    Here is the codeing I used in the htaccess file:

    Code:
    ErrorDocument 404 /errors/404.html
    (And just incase you wanted to see the full view of the htaccess file for public_html, here it is

    Code:
     
    # -FrontPage-
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName 2enetwork.x10hosting.com
    AuthUserFile /home/login2e/public_html/_vti_pvt/service.pwd
    AuthGroupFile /home/login2e/public_html/_vti_pvt/service.grp
    Options All -Indexes
    ErrorDocument 401 /errors/401.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html
    Thank you for your help!

    (my site is http://2enetwork.tk)
    dinomirt96 likes this.

  2. #2
    Twinkie is offline Banned Twinkie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Ft. Lauderdale, Florida
    Posts
    1,389

    Re: Custom Error Pages

    The pages you were reffering to don't exists at:

    http://2enetwork.tk/errors/401.html
    http://2enetwork.tk/errors/403.html
    http://2enetwork.tk/errors/404.html
    http://2enetwork.tk/errors/500.html

    The documents must be placed at that location or else it will give an errors saying that it could not find an error document.

  3. #3
    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,633

    Re: Custom Error Pages

    Do you have a subdirectory errors with the files in it?
    .html, not .htm or .HTML
    and errors, not Errors
    Nothing is always absolutely so.

  4. #4
    2enetwork is offline x10Hosting Member 2enetwork is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    9

    Re: Custom Error Pages

    Those files do exist, but for some reason the are not appearing right. Here are a few screenshots to show you the problems.

    To show you that the pictures are there:




    And here is what happens when I go to a non-existant page under my site:




    The only thing I can think is that maybe x10 has blocked the 404 errors? Are we allowed to use custom error pages with x10 hosting? Other than that, I dont have the slightest clue why I am getting a 404 error when trying to view the pages.
    Edit:
    And BTW, I have apache setup on my computer for testing and I keep it in sync with my real site, and when I go to the exact same directory (/errors/404.html) it works on my computer.
    Edit:
    Ok, here is something strange I just found out. I tried to change the name of the folder to errorpgs, and it worked. Then I tried changing it back to errors, it didnt work. Does anyone have any clue why x10 Hosting's servers dont like my folder "errors"?
    Last edited by 2enetwork; 01-12-2010 at 06:30 PM. Reason: Automerged Doublepost

  5. #5
    Zubair's Avatar
    Zubair is offline x10 Super Spammer Zubair has a reputation beyond reputeZubair has a reputation beyond reputeZubair has a reputation beyond repute
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,747

    Re: Custom Error Pages

    Try changing the extension to .shtml
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

  6. #6
    accessdenied is offline x10Hosting Member accessdenied is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    7

    Re: Custom Error Pages

    Have you edited the .htaccess file in public_html or in the root folder?

  7. #7
    Zubair's Avatar
    Zubair is offline x10 Super Spammer Zubair has a reputation beyond reputeZubair has a reputation beyond reputeZubair has a reputation beyond repute
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,747

    Re: Custom Error Pages

    Quote Originally Posted by accessdenied View Post
    Have you edited the .htaccess file in public_html or in the root folder?

    Please see before posting... This is .htaccess file

    Code:
     
    # -FrontPage-
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName 2enetwork.x10hosting.com
    AuthUserFile /home/login2e/public_html/_vti_pvt/service.pwd
    AuthGroupFile /home/login2e/public_html/_vti_pvt/service.grp
    Options All -Indexes
    ErrorDocument 401 /errors/401.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html
    verlmirt17 and karimirt47 like this.
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

Closed Thread

Similar Threads

  1. Custom Errors not working?
    By 2enetwork in forum Free Hosting
    Replies: 1
    Last Post: 01-03-2010, 03:32 PM
  2. Custom Domain
    By normaltusker in forum Free Hosting
    Replies: 2
    Last Post: 11-03-2008, 05:01 AM
  3. Custom Gaming Graphics for you
    By gamingresource in forum Graphics & Webdesign
    Replies: 1
    Last Post: 02-23-2008, 07:30 AM
  4. Seas2Success - Custom Banner Offer!
    By loveboat in forum Ads & Offers
    Replies: 9
    Last Post: 02-08-2008, 11:34 PM
  5. Custom Domain Name
    By halohalo in forum Free Hosting
    Replies: 1
    Last Post: 08-15-2007, 12:35 PM

Tags for this Thread

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