Haven't used Codeigniter for some time, but I would check routes.php configuration and config.php to be sure url and path related settings are correct.
To create host for your setup, you can add
Code:
127.0.0.1 what.local
to your hosts file and then configure apache VirtualHost.
Code:
<VirtualHost *:80>
DocumentRoot "/PATH_TO_YOUR_PROJECT_DIR"
ServerName wha.local
<Directory "/PATH_TO_YOUR_PROJECT_DIR/">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Bookmarks