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
to your hosts file and then configure apache VirtualHost.
Options Indexes FollowSymLinks
Require all granted