.htaccess 代码签名器和文件位置

.htaccess 代码签名器和文件位置,.htaccess,codeigniter,codeigniter-2,.htaccess,Codeigniter,Codeigniter 2,我有一个默认安装的codeigniter。在我的公共html文件夹(根)中,我创建了js文件夹。里面有一个tinymce(富文本编辑器)。在该文件夹下有一个tinymce.min.js文件。在浏览器中键入时,我看不到文件的内容: 它显示了codeigniter 404错误页面。在我的.htaccess中,我有以下内容: # Use PHP5 Single php.ini as default AddHandler application/x-httpd-php5s .php RewriteEn

我有一个默认安装的codeigniter。在我的公共html文件夹(根)中,我创建了js文件夹。里面有一个tinymce(富文本编辑器)。在该文件夹下有一个tinymce.min.js文件。在浏览器中键入时,我看不到文件的内容:

它显示了codeigniter 404错误页面。在我的.htaccess中,我有以下内容:

# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
我的基本url在config.php中定义:

$config['base_url'] = 'http://www.mydomain.com/';

/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = 'index.php';
是什么导致了这个错误?为什么它不能定位和显示文件内容?在我看来,这是问题的根本原因


提前谢谢

您可以在htaccess文件中尝试此条件

RewriteCond $1 !^(index\.php|js|images|robots\.txt)
使用以下命令:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
在config.php中

$config['index_page'] = '';   #remove index.php