Results 1 to 4 of 4
hi guys. i just wanted to know how i can make my index.htm inside a subfolder automatically opened when accessed via web browsers. example, in my web root, i have ...
- 03-19-2007 #1
apache subfolders
hi guys. i just wanted to know how i can make my index.htm inside a subfolder automatically opened when accessed via web browsers. example, in my web root, i have a "task" folder. in that folder, there is index.htm. when i access it via web (typing the url) http://www.mysite.com/task, i want the index.htm file be opened automatically. because when i try it, using the same url, it only opens a list of files contained in the folder.
thanks guys
- 03-19-2007 #2
On my system, simply changing index.htm to index.html did the trick. One would presume that there's a setting in a config file that lets you specify that .htm should be treated the same as .html, but I can't see it right off the bat. If you're concerned about keeping file names restricted to the 8.3 format, you can make index.html a link to index.htm.
Stand up and be counted as a Linux user!
- 03-19-2007 #3
yes sir, i have done that. this is how the webroot structure looks like:
the webroot directory contains files and folders. it has index.htm. when i type the url in the web browser's address field: http://www.mysite.com/, my index.htm automatically opens. so i have no problem with that.
now, in the webroot directory, i have a folder named task. task folder also contains webpages and one of those is another index.htm. now when i type http://www.mysite.com/task/ the browser presents me a list of files inside the task folder. what i wanted to happen is that, it should open automatically the index.htm contained in that folder.
thanks.
- 03-21-2007 #4
you were right sir. i forgot to put index.htm in the conf file. thanks a lot.


Reply With Quote
