I’ve made a design for my parents’ school website over this weekend. We are a public school in Bangkok, Thailand. So if you have any kids age between 2-6 years, go ahead.



What is 404 Not found page?
- It is a non-exist website page. Let’s say when you go to a web page and the link is broken. There will be a screen dedicating that the page you are trying to go is not exist.

What is 403 Forbidden path page?
- It is a page that web page that webmaster would not like to have users access that URL. Mostly this page is used for hiding files in folder which does not contain index page within it.

.htaccess file
First off, you have to go to your .htaccess file on your Apache server. Normally, .htaccess file is in a root folder. In case, you cannot find it, you can just create a new one and paste it on your root folder.  .htaccess file will control configurations normal basis of the server.

To customize 404 page:
You have to add ErrorDocument 404 /filename.html in the .htaccess file. The path file can be *.html, *.php or anything you would like to be. Then basically, whenever users get to a broken link on your website, they will be sent to the path you dedicated. After you set up, you, now, will be able to customize or design the error page anything as you want.

To customize 403 page:
You have to add Options -Indexes in the .htaccess file to turn off displaying files in non-index directory. Then add ErrorDocument 403 /filename.html. The path file can be *.html, *.php, or anything you want. When they are trying to go to an existing folder and expecting to see all of the files in that non-index folder, they will be sent to the path you dedicated. Now, you can start making a page for 403 error for you website.

Example in .htaccess file will be like

Options -Indexes
ErrorDocument 404 /404.php
ErrorDocument 403 /403.php

You may see my 404 Not found page here
http://blog.chaowadee.com/errorpage.html

Here is for 403 Forbidden path page here
http://blog.chaowadee.com/non-index_folder/