WordPress 多站点安装与高级设置教程

文章摘要:


在正常安装WordPress完成后,可以通过修改配置文件来使用WordPress多站点。

WordPress多站点有2种模式,一种是子域名模式,另外一种是子目录模式。

Related testimonials

例如:ggdoc.cn为主域名,那么可以让二级域名作为子域名来实现不同的站点,例如:m.ggdoc.cn、www.ggdoc.cn。

这种模式下,需要设置域名泛解析,例如将*.ggdoc.cn解析到服务器IP地址。

首先需要修改WordPress配置文件:wp-config.php,添加以下配置:

访问网站后台,按照提示,添加相应的配置,参考如下:

配置完成后,需要修改Nginx配置,参考配置:

Updated to 106

图片[1]-WordPress 多站点安装与高级设置教程-小妖精资源网-免费技术教程、游戏、软件、建站源码下载

Chinese Simplified

这种模式就是用二级目录来作为新的站点,例如:主站为ggdoc.cn,那么其它站点访问路径可以为ggdoc.cn/book、ggdoc.cn/movie。

首先需要修改WordPress配置文件:wp-config.php,添加以下配置。

100,000 years of refining gas

The Voice of China

最后,就可以在网站后台添加新站点了。

温馨提示:本文最后更新于2025-03-14 11:39:12Updated to [8]Country loveSuit thugsGlobal nodes
Lin Yun, the sword slave of the Qingyun Sect of the Tianshui Kingdom, after being reborn, the original qualifications with extremely poor comprehension became different, and after a set of Tiger Fists, he directly broke through to the triple realm of martial arts that could become a disciple of the outer sect of the sect. However, even if he got rid of the status of a sword slave and became an outer disciple, Lin Yun was still discriminated against by other disciples of the sect, all because of the unwritten rule of "being a sword slave for one day and a sword slave for life...... The road of martial arts is full of hardships, how can Lin Yun constantly challenge himself, find opportunities to improve, break the sect's mustard, rewrite the life of the sword slave, and set foot at the peak of martial arts?9 anime
畅所欲言 If history is a group of meows in the sixth season of the public PV, it is announced that it will start broadcasting on April 11 PV link: https://www.bilibili.com/bangumi/play/ep394932

请登录后发表评论

    请登录后查看评论内容