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错误页面。
没有找到相关结果
已邀请:
1 个回复
吠强祷豪硅