title: CakePHP 2.0.4 "URL rewriting is not properly configured on your server"
body: <p>I've been trying to setup CakePHP on a development section of my server and I can't seem to solve the "URL rewriting is not properly configured on your server" error. I suspect I'm not configuring the .htaccess files with the correct RewriteBase. I've tried a wide variety of different RewriteBase for each file, but I can't seem to hit the right ones, and Cake doesn't give me any information other than "not working" (URL rewrite errors don't end up in Cake's error log).</p>
  
  <p>I do not have access to my httpd.conf file, but I've used .htaccess and mod_rewrite with other frameworks (Wordpress and CodeIgniter) without a problem.</p>
  
  <p>My base url for the site is: <a href="http://dev.domain.com/cake/" rel="nofollow">http://dev.domain.com/cake/</a></p>
  
  <p>My base server path is: /home/username/public_html/dev/cake/</p>
  
  <p>Cake root .htaccess:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /cake
      RewriteRule    ^$ app/webroot/    [L]
      RewriteRule    (.*) app/webroot/$1 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Cake app directory .htaccess:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /cake/app
      RewriteRule    ^$    webroot/    [L]
      RewriteRule    (.*) webroot/$1    [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Cake webroot directory .htaccess:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /cake/app/webroot
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
  &lt;/IfModule&gt;
  </code></pre>