0
wordpress | 多目录转向多域名
source link: https://benpaodewoniu.github.io/2024/03/29/wordpress17/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
wordpress | 多目录转向多域名
如何将 wordpress
多站点下子目录模式变为子域名模式。
编辑 wp-config.php
修改配置
define( 'SUBDOMAIN_INSTALL', false );
define( 'SUBDOMAIN_INSTALL', true );
然后,找到之前的站点的设置。
然后修改相关的 url
就好了。
之前是 thlm.com/lumi
现在改成了 lumi.thlm.com
。
一般来说,信息里面改完后,设置里面会自动修改,但是,还是建议你检查一下。
一共修改 3
处地方,信息一处,设置两处。
一般来说,这样改完就没问题了,当然有的时候会出现缓存问题。
- 登录账号后,有的主题不能显示后端
这里建议,先用其他浏览器用户或者清除完全部缓存后,尝试。
请我喝杯咖啡吧~
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK