0
は、私は私のブラウザで次のURLを入力します。オブジェクトが見つかりません! - CodeIgniterの
オブジェクトが見つかりません:私はこのエラーを取得する理由
localhost:8085/farabi/Fateme/index
私は知りません!
このサーバーでは、要求されたURLが見つかりませんでした。手動で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'] = '';
私のルートフォルダ(/ farabi)でhtaccess
:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
のためにこれを読んで、あなたのhtaccessを削除し、1
の下でそれを置き換える: 'します。http:// localhost:8085/farabi /インデックスIは、次のURLを使用する必要があります。 php/Fateme/index' –