使用文字編輯器尋找並取代 WordPress 內容
您可以匯出資料庫資料,再使用文字編輯器的「尋找及取代」,即可取代網域名稱等資料。
- Export your WordPress Database.
Warning: Make two exports and keep one as a backup in the event you need to restore to the original state.
- 使用 Notepad++ 或 Sublime Text 這類文字編輯器開啟 .sql 檔案。
- 存取文字編輯器內的「尋找及取代」功能 (通常是 Ctrl+F)。
- Enter the domain/data you want to replace in the Find field (or respective field).
- Enter your new domain/data in Replace field (or respective field).
- 執行「搜尋及取代」。
- 儲存更新的 .sql 檔案。
- Before importing the .sql file, you must drop the tables in your database.
- 匯入資料庫。
系統已更新您的 WordPress 網站,並使用新的網域或資料。
相關步驟
- 如果您透過這項程序變更網域名稱,那您可能還需要更新主機服務帳戶內的網域。
更多資訊
- 使用 WordPress 外掛程式尋找及取代內容。
- 備份資料庫。(
cPanel / Plesk / 虛擬主機 / VPS ) - If you need any assistance with a find and replace, our WordPress Premium Support team can do that for you.