Log in

View Full Version : customize Error 404



chechu
10-28-2006, 09:02 AM
Hey,
How can I make a customized Error 404 page ?

codeexploiter
10-28-2006, 09:46 AM
If you are hosted on a free server that gives you their own default error page, then you may not be able to customize your own. Please follow the below steps:

1. Develop and upload a webpage called 404page.html (this file will act as your 404 error page)

2. Create a new file using your text editor (notepad will do), type only this into a new file, changing the url to point to the path of your 404page.html file.

ErrorDocument 404 http://www.yoururl.com/404page.html

3. Save the file as .htaccess.

Now upload this file into your root directory which contains all your other webpages.

Thats it. If your web host supports .htaccess file then you'll have your own 404 error page

chechu
10-30-2006, 11:08 AM
Works perfectly. Thanks a lot !
The reason why it didn' work before is because I worked with windows instead of Linux !

tech_support
11-01-2006, 04:52 AM
It should actually work with both.

codeexploiter
11-02-2006, 05:12 AM
Yes it will work with Windows & Linux. I think you did some non-correct items while you use Linux.

Anyway the issue got resolved.