Got a problem here...
I have been working on websites for awhile but I've never run into this problem:
I create a directory on my site, in this case /test/. When I go to http://www.solarhorizons.com/test/, I get this:
[INDENT]Index of /test
Name Last modified Size Description
--------------------------------------------------------------------------------
Parent Directory 24-Aug-2007 21:52 -
index.html 24-Aug-2007 21:58 1k
--------------------------------------------------------------------------------
Apache/1.3.37 Server at Alternative & Renewable Energy News and Discussion. Port 80[/indent]
Why isn't the index.html resolving correctly?
I have other sub-directory pages such as my /contact/ form which work:
http://www.solarhorizons.com/contact/
I've never seen this happen and I have no idea why it doesn't parse the index.html file.
Any help would be greatly appreciated!
pr0gr4mm3r posted this at 05:00 — 25th August 2007.
He has: 1,502 posts
Joined: Sep 2006
Create a .htaccess file in your 'test' directory, and then insert the following line:
Directory Index index.html
'It works in your other directory because it points to index.php, and that must be one of the indexes set by your host. It's weird that it doesn't include index.html as one by default.
Solarius posted this at 15:10 — 25th August 2007.
They have: 2 posts
Joined: Aug 2007
Thanks for your reply. Thing is, I've already done that and you saw the result. It baffles me.
Even so, shouldn't index.html always resolve as the default in a sub-directory - even without an .htaccess file? I've never had to include an .htaccess file before.
I just don't get it. I have several other sites on the same hosting account and they work just fine and I've not had this problem with this particular site until now. I've uploaded the same test folder and index.html file (with no .htaccess file) to another domain on the same account with no problem.
Anyone else ever seen this?
pr0gr4mm3r posted this at 16:38 — 25th August 2007.
He has: 1,502 posts
Joined: Sep 2006
If that doesn't work, then your host probably disabled it (you could contact them and see). Rename that file to index.htm or index.php. It should work then.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.