Kroc/NoNonsenseForum — Issue #91: potential apache rewrite issues on certain hosting (1and1)
Author: natedsaint
Created: 2012-01-11 22:24:21+00:00
State: open

I dug around and I'm not sure this is anything to do with your code, but I was testing this on a server hosted by the 1and1 shared hosting, and some of the rewrite rules in the .htaccess file caused a 500 error on load. My guess is that since no one else is seeing this, it's likely a conflict with the server's config files, but I can't be sure.

I commented out line by line to isolate which ones caused it, I'll paste them below:

RewriteCond %{QUERY_STRING} path=/*(?:themes|users|lib) [NC]

RewriteRule ^ - [F]

RewriteCond %{REQUEST_URI} ^/(?:[^./&]+/)+$

RewriteRule ^(?:([^./&]+)/)?$ ?path=$1 [QSA,L]

RewriteCond %{REQUEST_URI} ^/((?:[^./&]+/)*)([^./]+)$

RewriteRule ^(?:([^./&]+)/)?([^./]+)$ thread.php?path=$1&file=$2 [QSA,L]

Running these through a syntax checker I got a few errors (http://www.lyxx.com/freestuff/002.html) so I'm not sure if those are causing it.

Message me if you need any further clarification or info.