title: htaccess: the server responded with a status of 500
body: <p><strong>Original code working in localhost:</strong></p>
  
  <pre><code>var form_data = {
                      'email':$('#inviteEmail').val(),
                };
  
      $.ajax({
              url: "&lt;?php echo site_url('invites/save_email') ?&gt;",
              type: 'POST',
              data: form_data,
              success: function(msg) {
                  window.location.href = "&lt;?php echo site_url('invites/moreinvites')?&gt;"
                  return true;
              }
      });
  </code></pre>
  
  <p>It works fine on localhost and CSRF is turned off. But when I moved it to media temple hosting, I started getting <code>500 Internal server error</code>.<br/><br/></p>
  
  <p><strong>Server Error Log</strong><br/><br/></p>
  
  <blockquote>
    <p>Request exceeded the limit of 10 internal redirects due to probable
    configuration error. Use 'LimitInternalRecursion' to increase the
    limit if necessary. Use 'LogLevel debug' to get a backtrace.</p>
  </blockquote>
  
  <p>My htaccess file has this</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /thesavv/
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ index.php?/$1 [L]
  &lt;/IfModule&gt;
  
  &lt;IfModule !mod_rewrite.c&gt;
      # If we don't have mod_rewrite installed, all 404's
      # can be sent to index.php, and everything works as normal.
      # Submitted by: ElliotHaughin
  
      ErrorDocument 404 /index.php
  &lt;/IfModule&gt;
  </code></pre>
  
  <p><br/>I have no idea about this error. </p>