|
本帖最后由 rushui 于 2013-7-2 09:49 编辑
CodeIgniter 版本 2.1.3
/index.php $application_folder = 'application';改为$application_folder = 'home';
/application/ 改为/home/
新建/admin/ 将/index.php与/home/下所有文件复制到/admin/
修改/admin/index.php 将$application_folder = 'application';改为$application_folder = './'
修改/admin/index.php 将$system_path = 'system';改为:$system_path = '../system';
修改/admin/config/config.php与/admin/config/config.php下的$config['encryption_key']如下:
$config['encryption_key'] = 'rushui';//开启session加密
修改/admin/config/autoload.php与/admin/config/autoload.php下的默认加载值如下:
$autoload['libraries'] = array('database','session');//开启自动加载数据库链接与session
$autoload['helper'] = array('url');//开启URL 辅助函数
新建/kindeditor
将/kindeditor/php/upload_json.php中的:
$save_path = $php_path . '../attached/';改为:$save_path = $php_path . '../../attached/';
$save_url = $php_url . '../attached/';改为:$save_url = $php_url . '../../attached/';
*后期要对/kindeditor/php/做权限验证
新建/attached
新建/home/view/default/存放默认风格(网站多风格控制)
将/home/ 和/admin/目录下的.htaccess文件内容改为(去掉index.php,在开启rewrite时生效):
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(index\\.php|images|robots\\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
本文转载:http://www.rushui.net/article/398.htm
|
|