我對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