I've been using Focus Lab's Master Config for most of this year and have never run into this issue before.
So here's what's happening, going to the domain (example: mysite.com/index.php or mysite.com) brings up a 500 internal server error. Going to mysite.com/admin.php does too. The .htaccess file is blank for the time being, but will eventually contain rules for removing index.php, expires, etc.
Going to www.mysite.com/index.php, www.mysite.com or www.mysite.com/admin.php all work. Going to subpages with www in front also seems to work fine.
My config.env.php file looks a little like this: http://pastie.org/5461257
If I change the first case to include the www, I get the 500 internal server error, AND the site shows correctly, including subpages.
If I throw the following into .htaccess (www to no www redirect) and keep the first case statement in config.env.php to include the www, the site works. If I change the case statement to just be mysite.com, the site does not work.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
Then, if I force www in .htaccess and keep www in config.env.php, the site doesn't work. If leave off www in config.env.php, the site works.
For now, just to get the site up and running, I've forced removal of www, left www in the config.env.php file, and added other rules to .htaccess (such as removing index.php, expires, etc.) and it's working fine.
I'm wondering if anyone has any insight as to why something like this would happen? I don't know that much about servers, but something tells me there's something funky with this client's host.