The DirectoryIndex should list all scripts
- Code: Select all
DirectoryIndex index.php index.html index.htm
About setting a forum as the index, the problem will the the zero duplicate, since it will force the use of the attended uri example.com/forum-url.html in your case.
But you could circumvent this sort of if you would use index.html or home.html for your forum URL (the one supposed to be the index) and then edit the phpbb_seo_class.php file as explained in the install to use something like forum.html for the real forum index.
You would need to turn of the virtual folder option and activate the forum id removing in the settings.
at this stage example.com/ would still load example.com/index.php (example.com/forum.html with url rewriting), and a DirectoryIndex would not help much since it will only consider real files, but you could implement an extra rewriterule to redirect example.com/ to example.com/index.html (or home.html or whatever you decide for the forum url).
- Code: Select all
RewriteRule ^/?$ /index.html [QSA,L,R=301]
before the forum rewriterules and with the proper paths and slashes. This will not work if there is a physical index.html file in the directory, but besides, it should be a way to do what you want.