Closed Thread
Results 1 to 5 of 5

Thread: custom 404 file doesn't load.

  1. #1
    sifaka is offline x10Hosting Member sifaka is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    44

    custom 404 file doesn't load.

    I made a custom 404 file named "error404.html" called by "ErrorDocument 404 error404.html", which I have uploaded and named .htaccess. I have intentionally left them in the root directory for testing simplicity. I did not put error404.html in a folder named errordocs. I will later if I can make it work.

    The .htaccess document returns the literal string "error404.html", the filename. It does not load in my browser as an html page. Any ideas?

  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: custom 404 file doesn't load.

    Code:
    ErrorDocument /error404.html
    add a leading /
    Nothing is always absolutely so.

  3. #3
    sifaka is offline x10Hosting Member sifaka is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    44

    Re: custom 404 file doesn't load.

    Then the server gives us:

    Not Found

    The requested URL /final RI/pages/biographies.html was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  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: custom 404 file doesn't load.

    Code:
    ErrorDocument  404  /error404.html
    Sorry, I forgot the '404' .
    Nothing is always absolutely so.

  5. #5
    sifaka is offline x10Hosting Member sifaka is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    44

    Re: custom 404 file doesn't load.

    Yes descalzo, I put in:

    ErrorDocument 404 /error404.html

    It is in the same directory, so it doesn't use the backslash. This should work, but it only returns the letters of the filename:

    ErrorDocument 404 error404.html

    returns:

    error404.html

    and that's all

    Thanks again.

Closed Thread

Similar Threads

  1. My website, is taking Ages to load or Dosent Load ?
    By enhanced.support21 in forum Free Hosting
    Replies: 0
    Last Post: 11-20-2010, 12:12 AM
  2. Replies: 2
    Last Post: 11-08-2010, 12:21 PM
  3. Replies: 3
    Last Post: 03-29-2010, 11:52 PM
  4. 150c for custom userbar save file
    By mike16889 in forum The Marketplace
    Replies: 4
    Last Post: 05-13-2008, 11:52 PM
  5. Site Won't Load, Random File Downloads
    By imonx10 in forum Free Hosting
    Replies: 6
    Last Post: 04-18-2008, 09:03 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