[wordpress插件] Automatic Subdomains自动子域

wordpress 插件 文章 2020-02-25 14:40 585 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

The purpose of this plugin is to facilitate deployment of subdomain links to

此插件的目的是促进子域链接的部署

landing pages on a WordPress website.

WordPress网站上的目标网页。

The plugin automatically maps subdomains

该插件会自动映射子域

to page and post permalinks based on the post_name field in the database.

根据数据库中的post_name字段来分页和发布永久链接。

There are no administrative settings.

没有管理设置。

This plugin DOES NOT edit DNS zone files.

此插件不编辑DNS区域文件。

Subdomain DNS records themselves

子域DNS记录自己

either need to be set up individually or as a wildcard record in the DNS zone

需要单独设置或在DNS区域中作为通配符记录

file to map to the website directory.

文件以映射到网站目录。

Once the request reaches the WordPress

一旦请求到达WordPress

system, the plugin will automatically check to see if the subdomain matches a

系统,插件将自动检查该子域是否与
相匹配

page or post name.

页面或帖子名称。

If so, the WordPress query is edited to get that page/post

如果是这样,将编辑WordPress查询以获取该页面/帖子

at its permalink.

在其永久链接上。

The WordPress siteurl is excluded, as is the naked

WordPress站点URL除外,裸露的也是如此

second-level domain.

第二级域。

Example mappings:

映射示例:

URL → Mapping

URL→映射

http://example.com → default homepage (no remapping)

http://example.com→默认主页(不重新映射)

http://www.example.com → default homepage (no remapping)

http://www.example.com→默认主页(不重新映射)

http://test-page.example.com → example.com/test-page/

http://test-page.example.com→example.com/test-page/

http://mypost.example.com → example.com/mypost/

http://mypost.example.com→example.com/mypost /

安装步骤

    1. Upload the automatic-subdomains directory to the /wp-content/plugins/

    2. automatic-subdomains 目录上传到 / wp-content / plugins /

      directory.

    3. 目录。

    4. Activate the plugin through the “Plugins” menu in WordPress.
    5. 通过WordPress中的“插件”菜单激活插件。

下载地址
https://downloads.wordpress.org/plugin/automatic-subdomains.zip
-EOF-

AI助手支持GPT4.0