视频:如何在WordPress 3.0中托管多个站点

In version 3.0 of WordPress, it’s possible to have one single WordPress install hosting multiple websites. This is great news for anyone who has multiple blogs hosted on different domains. Combining all the blogs into one install not only saves disk space, it also makes maintenance and upgrades easy. If you’re using WordPress version 3.0 and above, this feature is already built ​​in for you. Unfortunately, it’s not turned on by default. You can find the installation instructions on the WordPress Codex, but to make life easier for you, I’ve recorded a quick video tutorial to show you how to enable this functionality and configure it correctly:

在WordPress的3.0版中,可以安装一个WordPress来托管多个网站。 对于在不同域中托管多个博客的任何人来说,这都是一个好消息。 将所有博客合并到一个安装中,不仅可以节省磁盘空间,而且还使维护和升级变得容易。 如果您使用的是WordPress 3.0及更高版本,则已经为您内置了此功能。 不幸的是,默认情况下未启用它。 您可以在WordPress Codex上找到安装说明 ,但是为了使您的生活更轻松,我录制了一个快速视频教程,向您展示如何启用此功能并正确配置它:

WordPress 3.0 Multisite Setup

WordPress 3.0多站点设置

Here’s a quick summary of the steps required:

以下是所需步骤的快速摘要:

Step 1: Back up your current WordPress database.

第1步:备份当前的WordPress数据库。

Step 2: Add this line into your wp-config.php file:

步骤2:将此行添加到wp-config.php文件中:

define('WP_ALLOW_MULTISITE', true);

Step 3: Log in to the admin area and click on Tools -> Network. Choose the “Sub-directories” option. Submit the form (accepting the defaults for the other options), then follow the instructions given on the next page.

步骤3:登录到管理区域,然后单击工具->网络。 选择“子目录”选项。 提交表单(接受其他选项的默认设置),然后按照下一页上的说明进行操作。

Step 4: Log out and log back in again. You should now have a “Superadmin” panel at the top of your WordPress admin menu. Under Superadmin -> Sites, add your new site.

步骤4:注销并再次登录。 现在,您应该在WordPress管理菜单的顶部具有一个“超级管理员”面板。 在超级管理员->网站下,添加您的新网站。

Step 5: Test that your new site is working.

步骤5:测试您的新站点是否正常运行。

There you go! You now have a new WordPress site running in a subdirectory. But what if you would like your new WordPress site to be located at an entirely different domain instead?

你去! 现在,您在子目录中运行了一个新的WordPress网站。 但是,如果您希望新的WordPress网站位于完全不同的域中怎么办?

In this case, you’ll need to go through a few more steps:

在这种情况下,您需要执行几个步骤:

Step 6: Download the domain mapping plugin and follow the installation instructions.

步骤6:下载域映射插件,然后按照安装说明进行操作。

Step 7: Log out and log in again. Update Superadmin -> Domain Mapping with your server’s IP address, then go to Superadmin -> Domains to link up a domain with a site ID.

步骤7:注销并再次登录。 使用服务器的IP地址更新Superadmin-> Domain Mapping,然后转到Superadmin-> Domains以链接具有站点ID的域。

Step 8: Test your new domain.

步骤8:测试您的新域。

That’s it for now! Any feedback is welcomed.

现在就这样! 欢迎任何反馈。

翻译自: https://www.sitepoint.com/video-how-to-host-multiple-sites-in-wordpress-3-0/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值