How to work code-igniter project in sub-folder

When this happens when you have 2 .htaccess files in the server. Very simple solutions just add following code and your code-igniter project will work in sub-folder.


RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /admin/index.php?/$1 [L]

 

Most Popular

The Requested Url /Phpmyadmin/ Was Not Found On This Server