您在這裡

更改網域名稱/搬移網站 會產生問題嗎?

kiki's 的頭像
kiki 在 2008-03-01 (週六) 17:32 發表

目前的計畫是:

安裝Drupal於測試網址 --> 把舊網站資料搬移過來(手動,預計要數星期) --> 備份舊網站並刪除 --> 把Drupal網站搬到正式網址。

測試網址與正式網址是在同一個虛擬主機上。這樣的流程會有問題嗎?

我已經嘗試安裝一個新的Drupal網站於A網址,然後直接 mv 到B網址。似乎沒有產生問題,資料庫似乎也不需要任何修改。
但擔心若網站經過增加內容/模組/修改設定後再行搬遷,會產生不良後果。

有沒有人有類似經驗,可以提供參考?

http://drupal.org/node/3366

Copy Files
Copy the files of your Drupal installation from the old directory to your new directory. Make sure you include .htaccess.

Change Path
In your new directory, open the file (4.5 or earlier) includes/conf.php or (4.6) sites/default/settings.php

Look for a line that begins with "$base_url = ", update this so that $base_url equals the path to your new directory. Save the file and close it.

You might need to modify the .htaccess file as well.

Update Cron
If you set up Cron on your old installation, make sure you update it to point to your new installation.

Delete Old Directory
Test that everything is working in your new installation. If so, it is now safe to delete the files in your old Drupal directory.

---------------------------------
網絡賺錢訊息、Blog、討論區and Drupal
http://www.MakeMoneyOK.com