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

Automatic Domain Changer

外掛說明

This plugin automatically detects a domain name change, and updates all the WordPress tables in the database to reflect this change.

Features

  • Easily migrate a WordPress site from one domain to another
  • Migrate www.domain.com and domain.com at once
  • Migrate http and https links at once

Feedback

More

Translations

  • English
  • French
  • Spanish
  • Slovak

螢幕擷圖

  • The domain change and admin notice

安裝方式

This section describes how to install the plugin and get it working.

Requirements

  • The PHP CURL extension, usually installed on Un*x, Mac and Windows environments. See “Installing CURL on Linux” below for more help.
  • Capability for your server to communicate with the outside work (or more specifically, to communicate with our servers)

Installing the Plugin

(using the WordPress Admin Console)

  1. From your dashboard, click on “Plugins” in the left sidebar
  2. Add a new plugin
  3. Search for “Automatic Domain Changer”
  4. Install “Automatic Domain Changer”
  5. Once Installed, if you want to manually change your domain, go to Tools > Domain Change
  6. If your domain changes, a notice will appear at the top of the admin screen with a link to the domain changing tool

(manually via FTP)

  1. Delete any existing ‘auto-domain-change’ folder from the ‘/wp-content/plugins/’ directory
  2. Upload the ‘auto-domain-change’ folder to the ‘/wp-content/plugins/’ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Once Installed, if you want to manually change your domain, go to Tools > Domain Change
  5. If your domain changes, a notice will appear at the top of the admin screen with a link to the domain changing tool

Making your blog/site address automatically reflect your server’s name

Add the following to your wp-config.php file:

define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']);
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME']);

See https://codex.wordpress.org/Editing_wp-config.php#WordPress_address_.28URL.29 for more information.

常見問題集

What does this plugin do precisely?

It scans all the tables with the same table prefix as WordPress. It fetches each row, unserialize values as needed, and replace the old domain by the new.

Do you plan to localize this plugin in a near future?

Yes, this plugin will be translated to french shortly. If you want to help with translation in other languages, we’ll be happy to hear from you.

使用者評論

2016 年 9 月 3 日
I cannot understand, where to install this plugin first - to old or to the new domain? Amazing 😀
閱讀全部 27 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Automatic Domain Changer〉的開發相關工作。

參與者

將 Automatic Domain Changer 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

2.0.2

  • Tested up to WordPress 4.9.8
  • Added a way to change the protocol to HTTP or HTTPS

2.0.1

  • Tested up to WordPress 4.6.1
  • Removed admin notice for users who don’t have update_core permission

2.0.0

  • Tested up to WordPress 4.4.2
  • Added backup functionality
  • Removed usage of mysql_* functions in favor of $wpdb

1.0.1

  • Tested up to WordPress 4.2.2

1.0

  • Tested up to WordPress 4.2.1

0.0.6

  • Bug fix with the processValue function generating a warning (thanks to @sniemetz for letting us know about this issue)
  • Slovak translation (thanks to Marek Letko)
  • Tested up to WordPress 4.1.1

0.0.5

  • Minor text change

0.0.4

  • Added JSON detection to fix values not being handled for plugins like RevSlider (thanks to Alfred Dagenais for letting us know about this issue)
  • Added double serialize detection for plugins like Global Content Blocks (thanks to @pixelkicks for letting us know about this issue)
  • Tested plugin up to WordPress 4.0.0

0.0.3

  • Tested plugin up to WordPress 3.8.0

0.0.2

  • Added error suppression on unserialize calls, as failing unserialize are normal and part of the game. Thanks to Kailey Lampert for pointing this out.
  • Added serialize(false) detection.

0.0.1

  • First released version. Tested internally with about 10 sites.