开发者

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

开发者 https://www.devze.com 2023-04-11 01:45 出处:网络
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

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

精彩评论

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