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
What technologies are supported by my IIS7 web hosting?
Viewed 4985 times since Wed, Sep 23, 2009
Which Java Hosting solutions are provided by Telenet?
Viewed 3300 times since Wed, Aug 19, 2009
How can I secure my website statistics (awstats) with a login and password?
Viewed 9822 times since Tue, Sep 1, 2009
Some tips for a secure site...
Viewed 19171 times since Wed, May 15, 2013
How to link a mail or web hosting package to your domain
Viewed 99839 times since Fri, Dec 7, 2012
What is data traffic?
Viewed 3307 times since Thu, Nov 27, 2008
Which data is backed up and how long are these backups stored by Telenet?
Viewed 919 times since Mon, Aug 27, 2012
Which outgoing mail server can I use for Shared Hosting?
Viewed 1111 times since Mon, Jul 16, 2012
I only see a list of files and not my website’s homepage. What do I do?
Viewed 7638 times since Thu, Nov 27, 2008