title: CakePHP application in a sub-folder and WordPress in root, how to modify htaccess to make it work?
body: <p>I have WordPress installed in <code>public_html</code> i.e, root folder and have CakePHP installed in a sub-folder that is <code>public_html/CakeApp</code>. How do I modify htaccess to make this work?</p>
  
  <p>htaccess file in public_html right now reads:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
     RewriteEngine On
     RewriteBase /
     RewriteRule ^index\.php$ - [L]
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>When I access <code>mydomain.com/CakeApp</code> it is re-directed to <code>mydomain.com/CakeApp/users/login</code> but all it shows is a WordPress 404 error.</p>