這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Site Address Migrator

描述

If you ever change the Site Address under the WordPress settings, you may notice that all the links in your pages and posts may still use the old site url. This plugin plugin migrates all those urls in your WordPress database when you change the Site Address, without requiring the Search Replace DB script.

Site Address Migrator updates all links matching the old Site Address in:

  • Description, content and excerpts of all posts, pages and media (including custom types)
  • Post and page option fields
  • Comments and comment option fields
  • Post category and tag descriptions
  • User descriptions
  • User website fields
  • WordPress and widget option fields

Site Address Migrator will update links inside serialized data correctly. Site Address Migrator will also match links when the protocol does not match the Site Address (eg. the link uses “https://” instead of “http://”, or if it is protocol-relative “//”). The protocol used for the original link will be honored (ie. if the link was “https://”, it will remain “https://” even if the Site Address is given as “http://”).

Warning: Make sure you have access to the new site domain before updating the Site Address, and double check for spelling errors! Entering the wrong site address can prevent you from accessing WordPress again without manually fixing the MySQL database entries. Backup your MySQL database if possible.

This plugin is not designed for, and has not been tested for Multi-Site installs.

安裝

  1. Install the plugin via the WordPress.org plugin directory or upload it to your plugins directory.
  2. Activate the plugin.
  3. Plugin will automatically kick-in when you update the Site Address.
  4. Optionally you can perform a manual update by going to Settings > Site Address Updater.

常見問題

Does this work for changing the WordPress Address (ie. “Home” setting)

No, this plugin updates only the Site Address, so it will not migrate links to your assets (media files, etc) when you move your WordPress installation directory.

Why did my … widget or plugin stop working?

This plugin updates only the WordPress database tables. If the widget or plugin relies on data stored outside of these normal WordPress database tables, then they could stop working.

Does this update GUIDs?

Updating GUIDs is disabled by default as recommended by WordPress, but you can enable updating GUIDs by un-commenting the corresponding line in the PHP file.

評價

2018年10月23日
I don´t understand the minor reviews, this plugin is best when changing URL. For example switching from http:// to https:// or any other domainchange. I use this plug now for more then 20 sites and it works fine. Alex
2017年9月28日
404 errors added http/// to all my email addresses, incl admin ones Took half my footer away and some buttons.
2016年12月29日
Just changed site URL setting for my friend and found this addon, one-click, and done.
閱讀全部4個評價

貢獻者及開發者

“Site Address Migrator” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Site Address Migrator 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0

  • Stable release

2.0

  • Added manual update capability