0

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:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|sandbox|scripts|robots\.txt)
RewriteRule ^(.*)$ /index.php/test/$1 [L]
1
  • 1
    You can set the default controller in config/routes.php
    – Vikk
    Oct 4, 2011 at 4:18

1 Answer 1

5

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.