Telenet Cloud Online Help

How do I create a "404 - page not found" page for my hosting?

  1. Create the desired error page in a html editor, just as you would create any other page of your website. You can adapt the page to your taste (text, links, images, ...). This will be the page that will be displayed instead of the 404 error page.
  2. Save this as a .html file (e.g. 404.html).
  3. Upload this page via FTP to your web space. You could place the file in the directory "errors".
  4. Catching errors:
    1. LINUX hosting:
      • Create a new text file (htaccess.txt)
      • Add the following line:
        ErrorDocument 404 /errors/404.html
        Now you are referring to the file "404.html" that you placed in the directory "errors". In case you chose another file name and/or directory, adapt this code to the names you chose.
      • Save the file and place it in the wwwroot folder of your web hosting.
      • You now need to adapt your file name from "htaccess.txt" to ".htaccess" by using your FTP program. It is thus a file without an extension.
      • If your visitors try to access a non-existent page, they will see the "404.html" page. If this has to be another file, you indicate that file.
    2. WINDOWS hosting:
    3. Place your desired 404 page in your web space and choose one of the following solutions. 
        1. Display of static HTML page:
        2. Display of dynamic ASP.NET page:
        3. Forward to a different URL:
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Related Articles
How can I secure my website statistics (awstats) with a login and password?
Viewed 10062 times since Tue, Sep 1, 2009
I only see a list of files and not my website’s homepage. What do I do?
Viewed 7843 times since Thu, Nov 27, 2008
How to link a mail or web hosting package to your domain
Viewed 100144 times since Fri, Dec 7, 2012
How to choose for a Shared Web Hosting solution?
Viewed 15552 times since Tue, Nov 18, 2008
Some tips for a secure site...
Viewed 19297 times since Wed, May 15, 2013
What is data traffic?
Viewed 3559 times since Thu, Nov 27, 2008
What technologies are supported by my IIS7 web hosting?
Viewed 5240 times since Wed, Sep 23, 2009
What are website statistics and where can I find them?
Viewed 4394 times since Thu, Nov 27, 2008
Which Java Hosting solutions are provided by Telenet?
Viewed 3483 times since Wed, Aug 19, 2009