title: PUT request returns 406 (Not acceptable) coming from Backbone.js to my REST-ful PHP page
body: <p>I wrote a REST-ful API using Fat Free Framework in PHP, and am making a call using backbone.js. When I try and save a new Orders model my app makes a PUT request, and the server spits back a 406 error.</p>
  
  <pre><code>Request Method:PUT
  Status Code:406 Not Acceptable
  
  Request Headers
  Accept:application/json, text/javascript, */*; q=0.01
  Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
  Accept-Encoding:gzip,deflate,sdch
  Accept-Language:en-US,en;q=0.8
  Connection:keep-alive
  Content-Length:174
  Content-Type:application/json
  Cookie:__utma=239804689.76636928.1286699220.1305666110.1325104376.94; __utmz=239804689.1325104376.94.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=935d2632fd0d12a1a0df4cb0f392eb5e
  X-Requested-With:XMLHttpRequest
  
  Request Payload
  {"id":0,"customerId":0,"lastPage":"items","priceConfig":null,"items":null,"saveStatus":0,"savedAt":1326588395899,"name":null}
  
  Response Headers
  Connection:Keep-Alive
  Content-Length:460
  Content-Type:text/html; charset=iso-8859-1
  Date:Sun, 15 Jan 2012 00:46:37 GMT
  Keep-Alive:timeout=5, max=98
  Server:Apache
  </code></pre>
  
  <p>My .htaccess file looks like this:</p>
  
  <pre><code># Enable rewrite engine and route requests to framework
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule .* index.php [L,QSA]
  
  # Disable ETags
  &lt;IfModule mod_headers.c&gt;
      Header Unset ETag
      FileETag none
  &lt;/IfModule&gt;
  
  # Default expires header if none specified (stay in browser cache for 7 days)
  &lt;IfModule mod_expires.c&gt;
      ExpiresActive On
      ExpiresDefault A604800
  &lt;/IfModule&gt;
  
  &lt;IfModule mod_security.c&gt;
  SecFilterEngine Off
  SecFilterScanPOST Off
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>My website application works fine on my local server and only does this on my web server. Any ideas what is going wrong? </p>