插件: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中文网其它相关文章!