Category Covered

How to allow sub folder on cakephp by htaccess

I have a project on main domain which is developed using cakephp framework and now i want to add another sub folder for testing another project which is devloped in smarty technology.

Here is the htaccess of the main project

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

 

Now i allow another sub project using the following overwritten,

 

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteCond %{REQUEST_URI} !^/elearning
   RewriteRule    ^$ app/webroot/    [L]
   RewriteCond %{REQUEST_URI} !^/elearning
   RewriteRule    (.*) app/webroot/$1 [L] 
</IfModule>