Today I had an interesting afternoon thanks to GoDaddy and WordPress. I have been working with my blog a lot over the past few days and I noticed that I was getting a lot of “Error 500 – Internal server error” messages. I was getting this error about 50% of the time. I went to my Control Panel on the GoDaddy site and turned on Error Logging. The only thing the Error Log was showing was a few lines that said ‘mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use ‘RewriteOptions MaxRedirects’ to increase the limit if necessary.’
From this error messages I assumed the problem was being caused by mod_rewrite but after several hours of playing with it and spending 1/2 hour on the phone with GoDaddy Tech Support, I discovered that it was not to culprit.
After doing much searching on the Internet I stumbled upon a forum post talking about the same problem. I discovered that the problem was not with mod_rewrite but was instead with the WP-Cache plugin that I had installed in WordPress. There seams to be some kind of compatibility problem with GoDaddy and WordPress with the WP-Cache plugin enabled. Disabling the plugin got rid of the 500 Internal server error messages.
I did not want to get rid of the WP-Cache plugin because it did speed up my site so I decided to see if anyone had a work around and I found a great blog post that told me how to fix it. The post is at Using WP-Cache on GoDaddy (500 Error).
I found thinkdj’s post over at Blogulate that has a GZIP version of WP-Cache that will work with GZIP enabled so I started with that version and added the GoDaddy fix. I took it a little further and found some optimization for WP-Cache as well. I have it fully working on GoDaddy now with no more 500 Internal Server Error messages. To save you all a lot of work I have created a .zip file containing the fixes and optimization to WP-Cache. Just download wp-cache.zip and unzip it into your wp-content/plugins directory. Your site should be faster and error free. I have only tested it on GoDaddy so I don’t know if it will work on other hosts.
Recommendation: Remove WP-Cache and Install WP-SuperCache. It works much better, you don’t need to edit it, it is updated regularly and does not cause any problems with GoDaddy.