我对CodeIgniter非常陌生,所以很明显我遇到了最基本的问题。我最近试图实施一个关于当地环境的网站。我正在使用WAMP,并且网站位于www/public_html中。现在,该网站是工作在我的本地主机,但如果我尝试导航到默认值(default_controler)任何其他页面返回找不到像CodeIgniter无法找到除default_controller以外的其他任何东西
The requested URL /public_html/signin/login/ was not found on this server
我认为,该网站的目的是通过解决其路径有关的问题本身。我显然错过了一些非常基本的东西。
我改变了config.php文件中的base_url的方式。
$config['base_url'] = 'http://localhost/public_html/';
我不知道base_url在哪里或在哪里改变它。任何帮助将不胜感激。
Zain
你访问该网站由'http:// localhost /'或'http:// localhost/public_html'? – sunshinejr
使用http:// localhost/public_html /。默认_controller工作。如果我将其从“欢迎”更改为“登录”控制器,它就可以工作。但不会从那里去任何地方。 – user3106759