Codeigniter within directory htaccess
I have a codeigniter project light
inside the folder projects
, it looks like this site.com/projects/light
. For some r开发者_开发问答eason the standard .htaccess
will not route all calls to index.php
. What needs to be changed or added?
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
It looks like the RewriteRule
is redirecting to /index.php, rather than /projects/light/index.php.
精彩评论