Configuring CodeIgniter to display on http: // localhost / ci /

I downloaded and installed CodeIgniter and Apache. I started my Apache server, and in my config.php file in CodeIgniter I set the base URL:

$config['base_url'] = "http://localhost/ci/"; 

However, when I go to this URL (http: // localhost / ci / or http: //localhost/ci/index.php ), I get the standard 404 Object Error not found.

Any idea what else I am missing? When I go to the local host, I see the WAMP homepage. Not sure if there is anything else I need to set up.

Thanks!

+4
source share
1 answer

You must set the alias apache .

For WAMP (I see that this message is marked as wamp), left-click on the icon wamp β†’ Apache β†’ Alias ​​directory β†’ Add alias.

Step-by-step screenshots are here .

+1
source

Source: https://habr.com/ru/post/1347037/


All Articles