Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
404 File Not Found - On the Index Page!
Moved to GitHub.
I'm getting a 404 message whenever I visit my test installation's root directory. I've installed on a subdomain, and I get the 404 message at http://sub.mysite.com/ and http://sub.mysite.com/index.php, but not on http://sub.mysite.com/index.php/. This occurs with url rewrite on or off. Any ideas?
I'm getting a 404 message whenever I visit my test installation's root directory. I've installed on a subdomain, and I get the 404 message at http://sub.mysite.com/ and http://sub.mysite.com/index.php, but not on http://sub.mysite.com/index.php/. This occurs with url rewrite on or off. Any ideas?
0
Comments
I don't know if this is a bug or just user error, but it is driving me crazy. I've installed Garden on both localhost and a test server on a subdomain.
I'm still getting the default 404 message whenever I visit my test installation's root directory, as noted above.
Everything seems to work fine on my localhost installation, but this problem's cropping up on my MediaTemple gridserver. I cannot reproduce this problem on localhost, and it does not seem to be an issue on vanillaforums.com subdomains. My mind is blown.
Here is the contents of my .htaccess file if it helps:
AddHandler php5-script .php <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,L] </IfModule>
Understand, now, that all the other pages work just fine, with rewrite on or off. So, for example, both sub.mysite.com/discussions and sub.mysite.com/index.php/discussions work, depending on whether I have rewriting on or off.
It just seems that neither / or /index.php will redirect to /index.php/.
http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride
Plus, if I tell Garden (via "General Settings") not to rewrite the urls, I get the same problem -- the root directory won't take me to /index.php/.
Maybe I could add another rewrite rule to specifically address this?
With a Media Temple Grid Server, your .htaccess file should look like this:
// Incorrect, read my next reply.
This did the trick on my GS, so I hope it works for yours.
Media Temple does in fact support the "IfModule" tag. I thought it was working when I removed it, but I just tried a fresh install to double check, my fix doesn't change anything.
----------------
Let me just re-clarify the issue we're having.
Here is a completely fresh install of Vanilla2 on Media Temple. I haven't touched anything (except for adding the Addhandler in the htaccess file).
http://lanparties.ca
"File Not Found"
However when I visit the following URL I get the default discussions page.
http://lanparties.ca/index.php/
I don't know exactly what's going on behind the scenes here, but it looks as if without the "index.php/" in the URL, something's not being initialized.
----------------
When the "use Garden's .htaccess file to rewrite urls" setting is enabled the root still gives a 404 error.
I had a 404 error back in August; here's how I resolved it:
http://vanillaforums.org/discussion/9758/Vanilla-2-Installation-Error/
http://github.com/lussumo/Garden/blob/master/.htaccess
However the "use Garden's .htaccess file to rewrite urls" setting is disabled (as it is by default).
Truth be told I haven't looked at Vanilla without the use .htaccess option for a while.