Vanilla not auto-loading index.php file
xDaizu
New
Some weeks ago I tried a Vanilla forums installation and everything seemed to work fine. Today, on the same machine, I installed the latest build and the links like the logo link /mysite/vanilla are broken, showing the folder view instead of the main page (which works fine if I type </mysite/vanilla/index.php> instead.
That happens which every link targeting a <mysite/vanilla/folder/> formatted URL instead of a <mysite/vanilla/folder/file.extension>one, so my wild guess is that something must be broken on the page loader/resolver.
0
Comments
Is
.htaccessin the folder?grep is your friend.
Of course it is! It's a vanilla installation (no pun intended xD). The contain is as follows:
# Original # If you modify this file then change the above line to: # Modified <IfModule mod_rewrite.c> RewriteEngine On # Certain hosts may require the following line. # If vanilla is in a subfolder then you need to specify it after the /. # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum) # RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L] </IfModule>And it must work fine...-ish , because if I type /mysite/vanilla/blasjfdoiajfeakl it correctly redirects me to the custom Vanilla 404 page.
Your server is the problem. It shows directory content instead of loading the index file. Add this at the top of your .htaccess file:
DirectoryIndex index.phpYou want to prevent directly listing anyway
https://wiki.apache.org/httpd/DirectoryListings
See the information about
DirectoryIndexYou wan to configure your server rule properly rather than rely on
.htaccessif possible.grep is your friend.