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

Force Domain Redirect

外掛說明

Redirects http://somedomain.tld to http://someotherdomain.tld

Assuming you have 2 or more domains in use for a single WordPress site. This plugin forces the use of only one no matter which is entered in the address bar.

If, for some reason, your host won’t automatically redirect from one domain to another, then this plugin will do it. It checks the URL used to access the site and does a 301 redirect if incorrect.

In theory htaccess should do this, but in my case it didn’t. Perhaps because I am using domain aliases (or CNAMEs) and I wanted to insure that the main one was always in use, even when accessed using old links.

安裝方式

Copy the plugin file to your WordPress plugins directory. That’s it. No configuration necessary… just make sure the domain you want to force is listed under SETTINGS > GENERAL > Site Address (URL)

使用者評論

閱讀全部 4 則使用者評論

參與者及開發者

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

參與者

將〈Force Domain Redirect〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.3 Compatibilty with WP5
Use HOME URL instead of SITE URL
0.2 Update to handle https
0.1 Initial version. Seems to do what\’s needed.