前言介紹
- 這款 WordPress 外掛「Multisite Blog Alias」是 2019-07-15 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2024-12-12,距離現在已有 141 天。
- 外掛最低要求 WordPress 4.8 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 有 5 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
domain | network | redirect | multisite |
內容簡介
WP Multisite 外掛,用於維護部落格 URL 重定向。
功能
永久的 301 重定向至部落格主要網域
簡易的安裝和啟用 – 不需要存取任何檔案。
檢查網域狀態
支援 UTF-8 編碼網域
WP-Cli 命令
使用方式
設定你的 DNS。確保你的網域指向你的 WordPress 安裝。你可以透過 DNS 配置設定 A or CNAME 記錄來達成這個目的。你的網頁伺服器必須配置好接收在指定網域的請求。
在網路管理 – 網站中編輯網站,然後選擇別名網域標籤。
輸入不包含 http 或 / 的網域,並按下「新增」。
按下「檢查狀態」檢查是否成功。若有任何錯誤,你會看到一個錯誤訊息。
若你要重定向時附加 URL 路徑(例如:從 some-alias.tld/some/path 重定向至 some-real-blog.tld/some/path),請加入以下內容至你的 wp-config.php 中:
define( 'WPMU_BLOG_ALIAS_REDIRECT_WITH_PATH', true );
狀態訊息
警告:該網域符合本部落格的站台網址:此部落格使用該網域名稱作為站台網址。
錯誤:網域已被另一個網站使用:另一個部落格已經將該網域視為站台網址。請從目前正在操作的部落格或另一個部落格中移除別名。
網域不可達:你的 DNS 或網頁伺服器配置很可能有錯誤,請使用命令列中的 nslookup 或 whatsmydns.net 檢查 DNS 設定。
該網域或重定向未指向此部落格:所追蹤的所有重定向都未到達你的 WordPress 網站,而是到達其他地方。你的 DNS 或網頁伺服器配置很可能有錯誤。
WP-CLI 範例
列出網域別名
列出網站 ID 123 的別名網域
wp alias-domains list --blog_id=123
輸出所有別名為簡化版的 JSON
wp alias-domains list --format=json --compact=2
在檔案中輸出包含標題列但省略其他訊息的 CSV
wp alias-domains list --format=csv --compact > alias-list.csv
新增網域別名
wp alias-domains add --blog_id=123 --domain_alias=quux.foobar.tld
移除網域別名
移除指定的別名
wp alias-domains remove --domain_alias=quux.foobar.tld
移除網站 ID 123 的所有別名
wp alias-domains remove --blog_id=123
測試網域別名
wp alias-domains test --domain_alias=quux.foobar.tld
請前往 Github 上的原始碼連結。
原文外掛簡介
WP Multisite plugin to maintain URL-redirects for Blogs.
Features
Permanent 301 Redirect to blogs main domain
Painless installation and activation – no file access necessary.
Checks domain status
Supports UTF-8 Domains
WP-Cli commands
Usage
Set up your DNS. Make sure your Domain points to your WordPress installation. You can achieve this by either setting up an A- or CNAME-Record in your DNS configuration. Your webserver must be configured to handle requests on the given Domain.
Under Network Admin – Sites edit the site and select the Alias Domains Tab.
Enter the domain without http ao / and click “Add”.
Click “Check Status” to see if it worked. If something went wrong you will see an error message.
If you want to redirect with URL path appended (e.g. from some-alias.tld/some/path to some-real-blog.tld/some/path), add this to your wp-config.php:
define( 'WPMU_BLOG_ALIAS_REDIRECT_WITH_PATH', true );
Status messages
Warning: The domain matches the site URL of this blog: The Blog is using the domain name as Site URL.
Error: The domain is already used by another site: A different Blog is already using the domain as Site URL. Eiter Remove the alias from the sblog you are currently workin on, or from the other one.
The domain is unreachable: There is likely an error in your DNS or your Webserver configuration. Use nslookup from he command line or whatsmydns.net to check the DNS-Settings.
The domain or a redirect does not point to this blog: Following all redirects did not end up on your WordPress-Site, but somewhere else. There is likely an error in your DNS or your Webserver configuration.
WP-CLI Examples
Listing Domain aliases
List alias domains for blog-id 123
wp alias-domains list --blog_id=123
Output minified json of all aliases
wp alias-domains list --format=json --compact=2
Output csv including the header row but omitting other messages into file
wp alias-domains list --format=csv --compact > alias-list.csv
Add Domain Alias
wp alias-domains add --blog_id=123 --domain_alias=quux.foobar.tld
Remove Domain Alias
Remove a specific alias
wp alias-domains remove --domain_alias=quux.foobar.tld
Remove all aliases for blog 123
wp alias-domains remove --blog_id=123
Testing Domain Aliases
wp alias-domains test --domain_alias=quux.foobar.tld
Plugin PHP-API
The plugin introduces two functions allowing you to add / remove a domain aliases from inside PHP.
Add Domain alias
$result = alias_domain_add( $blog_id, 'quux.foobar.tld' );
if ( is_wp_error( $result ) ) {
// handle error
}
Remove specific Domain alias
$result = alias_domain_remove_by( 'domain_alias', 'quux.foobar.tld' );
if ( is_wp_error( $result ) ) {
// handle error
}
Remove Domain aliases for a specific blog
$result = alias_domain_remove_by( 'blog_id', 123 );
if ( is_wp_error( $result ) ) {
// handle error
}
Development
Please head over to the source code on Github.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Multisite Blog Alias」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.1.6 | 1.1.7 | 1.1.8 | 1.1.9 | 1.2.0 | 1.2.1 | trunk |
延伸相關外掛(你可能也想知道)
Go Live Update Urls 》一鍵更改網站網址, 這個外掛可以透過搜尋整個網站,把所有舊的網址取代成新的網址。這個功能通常用來更改網站網址。, 要獲得更多功能,如支援外掛建立的資料...。
WP24 Domain Check 》WP24 Domain Check 可讓使用者檢查域名是否可供註冊。可透過捷徑碼或小工具輕鬆整合具有回應性的表單。標籤和顏色可透過設定頁面進行自定。, 功能, , 可透過...。
Powie's WHOIS Domain Check 》檢查域名的 WHOIS 查詢是否可用。只需在頁面或文章中插入 [pwhois] 短碼即可。, 要選擇默認的頂級域,請使用 default 屬性:[pwhois default=com] - 在 TLD ...。
User Domain Whitelist 》使用者網域白名單/黑名單外掛可將使用者註冊限制為只能使用下列白名單中的電子郵件網域註冊,或是防止使用下列黑名單中的電子郵件網域註冊。例如,如果 examp...。
Text Domain Inspector 》您有沒有遇到過想要翻譯的可翻譯字串但卻不知道該字串的文字域是什麼,讓您感到沮喪嗎?即使您具有寫程式的技能,此任務也可能很具有挑戰性且需要花費很多時...。
Domain Theme 》Domain Theme 外掛能讓你在 WordPress 的安裝中指定多個網域名稱,並為每個網域名稱選擇一個特定的佈景主題 (theme)。這樣,你可以讓你的網站在不同的網域名...。
MultiDomain 》, 在單一 WordPress 安裝中指向多個網域/子網域,並保持鏈接一致性(例如,如果您在 http://foo.com 上,則鏈接將是 http://foo.com/bar,如果您在 http:...。
Domain For Sale, Domain appraisal, Domain auction, Domain marketplace – Best Domain For sale Plugin for WordPress 》p>介紹一下 Domain For Sale WordPress 外掛 - 一個專門用於展示和出售未使用域名的終極工具。使用這個外掛,您可以輕鬆地創建一個專業的模板展示你的域名並...。
UmanIT Update URLs 》這個外掛在將網站從一個網域移動到另一個網域後,更新所有資料庫中的 URL,對於在開發、測試和生產階段之間切換非常有用。, 為什麼需要這個外掛? WordPress ...。
Force Domain Redirect 》此外掛可將 http://somedomain.tld 轉址至 http://someotherdomain.tld, 假設您在一個 WordPress 網站中有兩個或更多個不同的網域使用。此外掛強制使用其中一...。
WordPress Domain Search 》這個外掛可以讓使用者直接在您的網站上檢查域名是否可用,而不需要重新導向。您可以使用小工具將域名搜索添加到您網站的多個位置上。您也可以在管理儀表板小...。
RPS Blog Info 》 RPS Blog Info外掛揭示了有關網誌、文章、頁面和附件的有價值資訊,並將其方便地放置在WordPress工具欄中。 工具欄顯示多站點組態的網誌ID和頁面、文章和附...。
Rebrandly Redirect 》透過安裝此外掛並配置以連接至您的 Rebrandly 帳戶,您將能夠使用與您的 WordPress 網站/應用程序相同的域名創建品牌化連結。, 讓您的團隊透過 Rebrandly 自...。
Pronamic Domain Mapping 》使用 Pronamic Domain Mapping 外掛,您可以輕鬆地在您的主機解決方案使用的域名別名或指針上發布頁面,這樣您就可以在您擁有的額外域名上輕鬆地發布登陸頁面...。
ICDSoft Reseller Store 》開始在線上銷售網頁寄存服務。此外掛程式可讓您僅需數個點擊即可開始轉售網頁寄存服務。, 您可以設定自己的價格、所偏好的貨幣,並擁有一個可完全自動化的網...。