开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜