开发者

Setting up CodeIgniter to show up on http://localhost/ci/

开发者 https://www.devze.com 2023-02-22 11:38 出处:网络
I downloaded and set-up CodeIgniter and Apache. I have started my Apache server, and in my config.php file in CodeIgniter, I set the base URL to:

I downloaded and set-up CodeIgniter and Apache. I have started my Apache server, and in my config.php file in CodeIgniter, I set the base URL to:

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

However, when I go navigate to that URL (http://localhost/ci/ or http://loc开发者_运维百科alhost/ci/index.php), I get a standard 404 Object not found error.

Any idea what else I am missing? When I navigate to localhost, I see the WAMP home page. Not sure if there is anything else I need to set up.

Thanks!


You have to set apache alias.

For WAMP (i see this post is tagged as wamp) left click on wamp icon -> Apache -> Alias directories -> Add an alias.

Step-by-step screenshots here.

0

精彩评论

暂无评论...
验证码 换一张
取 消