The index page (aka homepage.php) in my code igniter install is working fine no matter what.
The problem lies with using subdirectories to store other pages, currently its setup like:
loading homepage like http://localhost/VAw_CI/
works fine (loading homepage.php), this is setup in routes.php:
$route['default_controller'] = "pages/homepage";
in config.php, I've setup:
$config['base_url'] = 'http://localhost/VAw_CI';
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = '';
I specified $config['index_page'] = '';
above, because I modified my .htaccess located in htdocs
like:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*homepage/$0 [PT,L]
However, if I try to login on homepage.php, which is currently looks like:
It sends me to http://localhost/VAw_CI/pages/clientlogin
displaying:
I have controllers setup like:
What gives here? When I visit http://localhost/VAw_CI
, it is effectively loading the views->pages->homepage.php
view properly, but it seems any other view doesn't work am I missing some path setup somewhere for pages other than the index (homepage.php) in my case?