该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0

  • Stable release

2.0

  • Added manual update capability