How to display site homepage using http://localhost/ci instead of http://localhost/ci/welcome |
[eluser]developer86[/eluser]
Hello good people, I am new to codeigniter and i'm urgently looking for help with loading a website homepage without entering any controller name in my URL input. For example, when i enter http://localhost/ci/ in my web browser, i want to see the homepage (main page) loaded at http://localhost/ci/welcome but instead it returns all directories in the index of /ci. This is the problem i have and i've been trying hard to resolve it without any luck. Currently, i'm able to successfully load the homepage URL with any of the options below: http://localhost/ci/welcome http://localhost/ci/welcome/index http://localhost/ci/index.php Please refer to the steps below that i took to remove index.php from my URLs 1. Config file (application/config/config.php) edited to show the following; Code: $config['base_url'] = ''; Code: $config['index_page'] = ''; 2. application/config/routes.php still points to welcome controller Code: $route['default_controller'] = "welcome"; 3. created a .htaccess file with the following rules; Code: <IfModule mod_rewrite.c> Please help me fix this |
Welcome Guest, Not a member yet? Register Sign In |