I installed Mediawiki on a GoDaddy linux account using Cpanel.
The wiki worked for few days. It then unexpectedly stopped working with "Error 500."
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
The cause of the problem was the .htaccess file, which looked like this:
RewriteEngine On
RewriteBase /wiki/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wiki/index.php [L]
Options -Indexes
Options -Indexes
I eliminated the redundant "
Options -Indexes" phrase from the "
Options -Indexes" line, and the wiki came back to life.
RewriteEngine On
RewriteBase /wiki/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wiki/index.php [L]
Options -Indexes
I don't understand what went wrong. I didn't create or modify the .htaccess file myself.
GoDaddy did this! I had made a backup of the wiki right after installation, and it didn't have either line in it!
RewriteEngine On
RewriteBase /wiki/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wiki/index.php [L]
GoDaddy's help system isn't entirely helpful on this score. In "
Issues with Server Side Includes and htaccess Files," GoDaddy says:
"Options -Indexes" is the preferred way to disable directory browsing. This is also the default behavior.
* Why did GoDaddy edit the .htaccess file to include a default setting?
* Why did GoDaddy mess up the .htaccess file by attaching "Options -Indexes" to the "" tag?
* Why did GoDaddy mess up the file twice?
×