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 9925 times since Tue, Sep 1, 2009
What is shared web hosting?
Viewed 12859 times since Thu, Nov 27, 2008
Which Java Hosting solutions are provided by Telenet?
Viewed 3366 times since Wed, Aug 19, 2009
Which outgoing mail server can I use for Shared Hosting?
Viewed 1148 times since Mon, Jul 16, 2012
What are website statistics and where can I find them?
Viewed 4331 times since Thu, Nov 27, 2008
Which data is backed up and how long are these backups stored by Telenet?
Viewed 944 times since Mon, Aug 27, 2012
Some tips for a secure site...
Viewed 19202 times since Wed, May 15, 2013
How to choose for a Shared Web Hosting solution?
Viewed 15473 times since Tue, Nov 18, 2008
What is data traffic?
Viewed 3426 times since Thu, Nov 27, 2008