Error messages

  JoJoJo 22:43 18 Jun 2003

I'm almost at the stage of publishing my website and I have made the pages directly addressable so that users don't gave to go through a main menu everytime they visit. Therefore I think it would be a good personal touch if the site offered customised error messages (for example error 404 messages with my header at the top).

I have searched extensively on the internet about how to do this and I have found several page describing ways of doing this if I have my own server. However, I'm going to be paying for hosting with a large company. Does any one know if and how I can still do this?

  Forum Editor 23:31 18 Jun 2003

is generated dynamically on the server, but provided you have your own domain you should be able to display your own page. This is how you do it.

1. Look in the root directory of your site and see if there's a file called: .htaccess

2. If it's no there you'll need to create it, and you do this by opening Notepad and creating a blank file called : .htaccess

Note that the filename starts with a dot - this means that it isn't really a file at all, the suffix (filetype) is htaccess.

3. Now add this line to the file - type it all on one line:

ErrorDocument 404 click here name of your domain in full/name of your custom page.html

(Note that I have left spaces in the mock address to prevent the forum site from making it into a blue 'click here' link).

4. Create your custom page and upload it to the server.

5. Put your newly created .htaccess file into the root folder of the site (that's the folder that contains the homepage) and make absolutely sure that the path to the custom page is correctly typed into the file.

It may be necessary to perform a small techie-typr job on the server before this will work, and you may want to check to see if your web host will do this for you. If the site's on a UNIX server you should be OK - otherwise you'll need to ask for the file permission: chmod 644.htacess to be set.

  Forum Editor 23:35 18 Jun 2003

I didn't leave spaces in: http: // www. the

and a blue link has formed.

So, to recap, the line that goes in the file is (without the spaces after the http)

ErrorDocument 404 http: // www. thenameofyourdomaininfull/nameofyourcustompage.html

  JoJoJo 11:09 19 Jun 2003

I've been experimenting with the above advice and have made my own custom erorr 404 message. However, whilst I can see it when the site is running from my computer when I upload it my FTP client, WS_FTP, will not allow you to see .htaccess.

Does anyone know how I can make it work or know of another FTP client I could use to upload it?

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

The Evil Within 2 review-in-progress

Photoshop CC 2018 released with new Curvature Pen and better brush tools

Camera tips to take better iPhone photos

Les meilleures applications de covoiturage 2017