My problem is if I go to my new installation root director, http://www.arguemax.com/_phpBB-3.0.12/ nothing happens and I get a "Forbidden" message, but if I put the index path in the URL of the browser, it works. That is, http://www.arguemax.com/_phpBB-3.0.12/index.php makes the phpbb load. Why is this and do I really need to be concerned about this? Should I just use http://www.arguemax.com/_phpBB-3.0.12/index.php in all my links on the landing page? I had a look at the .htaccess of this folder and I did not see any mention of an expected index file. Should I put something there?
Thanks in advance, gurus.
It sounds like your server's configuration for DirectoryIndex does not have index.php specified. So it does not load it. I assume you are using Apache. The DirectoryIndex directive tells the server which file to serve if no file is specified such as when typing your domain name or a folder.
So try putting this in your .htaccess file:
DirectoryIndex index.html index.htm index.php
If no file is specified, the server will load index.html, index.htm, or index.php if they exist.
Putting the DirectoryIndex directive in the server's configuration file is best. But if you do not have access to it, htaccess will have to do.
Yes, eg my localhost Apache httpd.conf file has
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
DirectoryIndex index.html index.php
but if you're on a shared host. htaccess is probably th best you can do.
... BUT Don't use the <IfModule ...> wrapper in your .htaccess file! Find out whether it works (ONCE) so Apache doesn't have to run the same test MULTIPLE TIMES for EVERY request!
Note: It does belong in the server's conf file as Mitt has it because it's only run on start.
This topic is now closed. New replies are no longer allowed.