If you're performing local development, And that i assume you're, you must set up a virtual host in your machine. It is A 3 action method:
In CodeIgniter user requests a useful resource, the controller responds first. https://codeniatechnologies.com/hire-developer/codeigniter