Forum Moderators: phranque
'You don't have permission to access /index.html on this server.'
If I copy the file and call it index.htm, or index.php there's no problem and I don't get an error. However I want the site I'm working on to have .html file extensions and I can't start until this is sorted.
I'm sure it's the simplest thing that needs unchecking in the config file but server configuration isn't my area of expertise.
Cheers,
R
DirectoryIndex index.htm index.html index.php
However, I just removed the following reference from my htacces file:
DirectoryIndex index.htm
and apache returned the directory (folder view). It didn't run the .htm file which it had been before. I know that really I shouldn't need to put a DirectoryIndex in the .htaccess file, but always had due to habit. So another problem is that DirectoryIndex doesn't seem to work in my config file.
I developed a site two years ago with files with the .html extension. I can't open that now (first time I've gone back to look at it in a long time). I have changed my harddrive and motherboard since then though and therefore reinstalled Apache. I may just have to do that again. Could a module by corrupted? It's just frustrating that everything else works apart from the default file type.
<Directory "D:/">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
The default is 'AllowOverride None' which worked. I've no idea why I had changed it to 'All' and I have no idea why this would have caused a problem. But it's fixed which is the most important thing ;)