Codeigniter WWW根

| 我想在根目录添加一个名为html的文件夹。在这个文件夹中,我将得到图像,js,css ect。我在根目录中使用.htaccess进行了以下操作:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule    ^$    html/    [L]
RewriteRule    (.*) html/$1    [L]
</IfModule>
我也已经将index.php从根目录复制到html路径。在html / .htaccess文件中,我具有:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>
同样在index.php文件中,我将路径更改为:
$system_path = \'../system\';
$application_folder = \'../application\';
结果带有来自codeigniter的404错误页面。     
已邀请:
        使用URL帮助器将始终解决此问题,请确保您的js和图像位于根目录中。 例如
<?php $this->load->helper(\'url\');?>
<link href=\"<?php echo site_url(\'style.css\')?>\" rel=\"stylesheet\" type=\"text/css\" />
    

要回复问题请先登录注册