title: Silverstripe mod_rewrite issue (I think)
body: <p>A site I've been working on, which has been working fine on my local dev and live dev environments is giving me issues when I try to deploy it to a live server (the client wants to host it with their existing hosting provider).</p>
  
  <p>I uploaded the site to the server and updated the database config as I have done many times before on both my and other's servers without issue. This time, however, I was presented with:</p>
  
  <pre><code>SilverStripe Framework requires a $databaseConfig defined.
  </code></pre>
  
  <p>When I removed the .htaccess file from the root folder, the site appeared, however, all the URLs appeared like so:</p>
  
  <pre><code>www.domain.com/index.php/page_name
  </code></pre>
  
  <p>After a few searches, I came across a solution to the index.php issue; to add the following to my _config file</p>
  
  <pre><code>Director::setBaseURL('/');
  </code></pre>
  
  <p>I did this and the URL's appeared correctly, however navigating to them would give me a 404.</p>
  
  <p>I reinstated the htaccess file and narrowed it down to this block:</p>
  
  <pre><code>RewriteCond %{REQUEST_URI} ^(.*)$
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_URI} !\.php$
      RewriteRule .* framework/main.php?url=%1 [QSA]
  </code></pre>
  
  <p>When this is in place, I get the database config error mentioned above, when it's not there, my urls produce 404s</p>
  
  <p>Does anyone have any insight as to what can be going on here? I've had a lot of back and forth with the host and he's not very knowledgable and can't offer any advice and I'm no genius when it comes to this side of things.</p>