0
我在我的瀏覽器中輸入這個網址:找不到對象! - 笨
localhost:8085/farabi/Fateme/index
我不知道爲什麼我得到這個錯誤:未找到
對象!
在此服務器上找不到請求的URL。如果您手動輸入網址 ,請檢查拼寫並重試。
如果您認爲這是服務器錯誤,請與網站管理員聯繫。 錯誤404
Fateme.php:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Fateme extends CI_Controller {
public function index()
{
$this->load->view('welcome_fateme');
}
}
的config.php:
$config['base_url'] = 'http://localhost:8085/farabi/';
$config['index_page'] = '';
我htaccess
在根文件夾(/法拉比):
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
解決:我應該使用這個網址:HTTP'://本地主機:8085 /法拉比/指數。 PHP/Fateme/index' –