如果安裝目錄為 lifetype (blog)
1. 拷貝 mysql 的資料庫
xampp 下的 mysql 下的 data 資料夾下的 lifetype (blog) 資料夾。
2. htdocs 下的 lifetype (blog) 資料夾複製
修改資料庫連線帳號、密碼
lifetype(blog) 資料夾內的 config 資料夾 下的 config.properties.php
$config["db_host"] = "localhost";
$config["db_username"] = "root";
$config["db_password"] = "密碼";
$config["db_database"] = "新的資料庫";
3. 使用 phpMyAdmin 去修改新資料庫中
使用 phpMyAdmin 去修改新資料庫中的 lt_config 表格
( 或者用 http://新 IP /lifetype (blog) /admin.php)
修改 全域變數下的 base_url 為新的網址
4. 修改其下的 .htaccess (可以不做)
參考簡易網址文章 (要檢查一下)
RewriteBase /blog
ErrorDocument 401 /blog/error.php
ErrorDocument 403 /blog/error.php
ErrorDocument 404 /blog/error.php
5.清空 LifeType 安裝目錄 ( lifetype or blog ) 下的 tmp 資料夾 ![]()
最好再備份網站系統的 http.conf 及 php.ini 。
這樣就萬無一失啦!