News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

Reserved Directories, Don't use these directory names

Started by ben2ong2, October 08, 2006, 04:47:53 PM

Previous topic - Next topic

0 Members and 10 Guests are viewing this topic.

ben2ong2

As you set up your site you will need to decide where to put different files and how to organize your directories. There are a couple of directory names you should not use. Apache is the server level program responsible for displaying webpages. Within the configuration file for Apache there are a couple of Aliases that it uses for directories. These are /manual/ and /icons/.

Because of this you should not use these names for any directories. If you have a file called mypage.html in a directory called /manual and type in http://******/manual/mypage.html then Apache will look it's own directory for mypage.html and since there is no page with that name there it will return a 404 Page Not Found Error. The same would be true for /icons/mypage.html or /icons/myimage.gif.

The solution is to use a different name for these directories, perhaps mymanual or myicons.
You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login