插件:WP Subdomains
地址:https://wordpress.org/plugins/wordpress-subdomains/
This plugin has been closed as of August 7, 2020 and is not available for download. This closure is temporary, pending a full review.
插件設置方法如下:
1.設置通配,將*.domain.com A記錄指向你的伺服器IP,同時伺服器添加子域名*.domain.com,指向目錄就是你主域名所綁定的目錄。
鏈接
WP Subdomains插件設置
(1)Wordpress 分類目錄 子域名 url (綁定二級域名)可以直接在 WP Subdomains插件 設置界面完成
(2)對於Wordpress頁面來說需要在頁面編輯是添加 wps_page_subdomain 的自定義欄位,賦值為true。
以上就是wordpress怎麼用二級域名的詳細內容,更多請關注php中文網其它相關文章!