xarzu — 2014-05-02T10:47:21-04:00 — #1
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.
cheesedude — 2014-05-02T18:52:44-04:00 — #2
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.
dklynn — 2014-05-02T19:57:11-04:00 — #3
xarzu — 2014-05-02T23:00:24-04:00 — #4
cheesedude — 2014-05-03T02:28:24-04:00 — #5
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.
mittineague — 2014-05-03T03:19:26-04:00 — #6
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.
dklynn — 2014-05-03T17:46:25-04:00 — #7
... 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.