[wordpress插件] Domain Sharding域分片

wordpress 插件 文章 2020-04-21 02:10 749 0 全屏看文

AI助手支持GPT4.0

评分
80
描述

We need to determine the subdomain pattern (ex: http://cdn-#.domain.tld ) substitution and the maximum number of subdomains we want to work with (ex: 5).

我们需要确定子域模式(例如:http://cdn-#.domain.tld)的替换以及要使用的子域的最大数量(例如5个)。

The pattern will transform an url like this 'http://www.domain.tld/img/source1.jpg' to this new url structure 'http://cdn-X.domain.tld/img/source1.

该模式会将类似“ http://www.domain.tld/img/source1.jpg”的URL转换为此新的URL结构“ http://cdn-X.domain.tld/img/source1”。

jpg' where X ranges from 1 to 5 (max).

jpg”,其中X的范围是1到5(最大)。

NOTE: If you have trouble accessing images using the new address because WordPress asks you to register the domain then you must insert the following line in the file wp-config.php

注意:如果由于WordPress要求您注册域而导致无法使用新地址访问图像,则必须在文件wp-config.php中插入以下行

include_once(ABSPATH.'wp-content/plugins/domain-sharding/domain-sharding-alias.php');

  include_once(ABSPATH.'wp-content / plugins / domain-sharding / domain-sharding-alias.php');

Then you need to be sure to set write permissions to the aliases folder located within the plugin directory.

然后,您需要确保对位于插件目录中的aliases文件夹设置写权限。

NOTE: You’ll need to manually create the new A records for the subdomains in your DNS panel.

注意:您需要在DNS面板中为子域手动创建新的A记录。

They should have the same ip address of your main domain.

它们应该与您的主域具有相同的IP地址。

Visit the Seocom website for more information about SEO or WPO optimization

访问 Seocom网站,以获取有关SEO或WPO优化的更多信息

安装步骤

    1. Install “Domain Sharding” either via the WordPress.org plugin directory, or by uploading the files to your server inside the wp-content/plugins folder of your WordPress installation.
    2. 通过WordPress.org插件目录或将文件上传到WordPress安装的wp-content / plugins文件夹中的服务器上,以安装“域分片”。

    3. Activate “Domain Sharding” plugin via WordPress Settings.
    4. 通过WordPress设置激活“域分片”插件。

    5. It’s done.

    6. 完成了。

      Easy, isn’t it?

    7. 很简单,不是吗?

    NOTE: If you have trouble accessing images using the new address because WordPress asks you to register the domain then you must insert the following line in the file wp-config.php

    注意:如果由于WordPress要求您注册域而导致无法使用新地址访问图像,则必须在文件wp-config.php中插入以下行

    include_once(ABSPATH.'wp-content/plugins/domain-sharding/domain-sharding-alias.php');

      include_once(ABSPATH.'wp-content / plugins / domain-sharding / domain-sharding-alias.php');

    NOTE: You’ll need to manually create the new A records for the subdomains in your DNS panel.

    注意:您需要在DNS面板中为子域手动创建新的A记录。

    They should have the same ip address of your main domain.

    它们应该与您的主域具有相同的IP地址。

下载地址
https://downloads.wordpress.org/plugin/domain-sharding.zip
-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Bol.com Partner ProgrammaBol.com合作伙伴计划
[wordpress插件] Autotag Posts by SHIFT1SHIFT1自动标记帖子
[wordpress插件] Antispam反垃圾邮件
[wordpress插件] Contact Page with Click to Call by MightyCall单击“通过MightyCall呼叫”的联系页面
[wordpress插件] Crowdfunding and Fundraising Campaign Builder for PayFormPayForm的众筹和筹款活动构建器
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9048
如何快速搭建抽奖助手小程序(无需代码知识) 6177
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7472
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 6793
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 6127
如何解决渲染层网络错误Failed to load media? 17393
小程序找号找回 释放昵称? 3253
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 3108
删除部分微信用户个人数据的通知,怎么删除? 6381