私はCodeIgniterの3CodeIgniterの3ルーティングエラー
にエラーをルーティング取得していますが見つかりませんでした 要求されたURL /index.phpは、このサーバー上に見つかりませんでした。 Apache/2.4.7(Ubuntu)サーバ
私は何をしましたか? 私の.htaccessは
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
はまた
AllowOverride ALL
を設定する私のコントローラtest.phpを
class Test extends CI_Controller {
public function index(){
print_r('test');
die();
}
}
マイルート:$route['test/(:any)'] = 'test/$1';
とURLでこのページにアクセスしてみてください:
http://localhost/codeigniter/test/index.php
http://localhost/codeigniter/test/
お手伝いします:) –