开发者

How to create the controller for http://localhost in Codeigniter?

I am using codeigniter and was hondering how to create the home page controlller, the controller for http://localhost. As of now i can access all controllers that are http://localhost/{controller}, but not just localhost. My .htaccess is as follows:

RewriteEngi开发者_JAVA百科ne on
RewriteCond $1 !^(index\.php|images|css|sandbox|scripts|robots\.txt)
RewriteRule ^(.*)$ /index.php/test/$1 [L]


Set the default_controller to the name of the controller you want to use in routes.php

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜