Codeigniter: specified word after url redirect to subfolfer <p>I have Codeigniter 3 project in root directory. I need to use it with kohana other project which is in subfolder (<code>admin</code>). I need to make redirect, when I will type <code>mysite.xyz/admin</code> that will redirect me to subfolder <code>admin</code>, where are kohana files: index.php etc.</p> <p>Now CodeIgniter think that <code>admin</code> is a controller.</p> <p>My .htacces file:</p> <pre><code>&lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteBase /projekty/folder/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] RewriteRule admin/^(.*)$ /admin/ [L] &lt;/IfModule&gt; &lt;IfModule !mod_rewrite.c&gt; ErrorDocument 404 /index.php &lt;/IfModule&gt; </code></pre> <p>Have any ideas, how to solve that? I was trying to find some solutions, but no success.</p> <p>Here is Kohana .htaccess:</p> <pre><code>RewriteEngine On RewriteBase /projekty/folder/admin/ ###### Add trailing slash (optional) ###### RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [L,R=301,NE] RewriteCond %{REQUEST_METHOD} !POST RewriteRule ^(.*)home/u343855449/public_html/projekty/folder/admin/index.php/(.*)$ /$1$2 [R=301,L,NE] RewriteCond $1 ^(index\.php|robots\.txt|favicon\.ico|media) RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ index.php?kohana_uri=$1 [L,QSA] </code></pre>