Title: Automatic Subdomains
Author: The Jake Group
Published: <strong>2012 年 2 月 10 日</strong>
Last modified: 2013 年 4 月 11 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/automatic-subdomains.svg)

# Automatic Subdomains

 作者：[The Jake Group](https://profiles.wordpress.org/the-jake-group/)

[下载](https://downloads.wordpress.org/plugin/automatic-subdomains.zip)

 * [详情](https://cn.wordpress.org/plugins/automatic-subdomains/#description)
 * [评价](https://cn.wordpress.org/plugins/automatic-subdomains/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/automatic-subdomains/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/automatic-subdomains/#developers)

 [支持](https://wordpress.org/support/plugin/automatic-subdomains/)

## 描述

The purpose of this plugin is to facilitate deployment of subdomain links to
 landing
pages on a WordPress website. The plugin automatically maps subdomains to page and
post permalinks based on the post_name field in the database. There are no administrative
settings.

This plugin DOES NOT edit DNS zone files. Subdomain DNS records themselves
 either
need to be set up individually or as a wildcard record in the DNS zone file to map
to the website directory. Once the request reaches the 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 at its permalink. The WordPress
siteurl is excluded, as is the naked second-level domain.

Example mappings:

URL → Mapping
 http://example.com → default homepage (no remapping) http://www.example.
com → default homepage (no remapping) http://test-page.example.com → example.com/
test-page/ http://mypost.example.com → example.com/mypost/

## 安装

 1. Upload the `automatic-subdomains` directory to the `/wp-content/plugins/`
     directory.
 2. Activate the plugin through the “Plugins” menu in WordPress.

## 常见问题

  Does this plugin edit my domain’s DNS zone file?

No. You must first edit your zone file to create the subdomains or a wildcard
 subdomain
to resolve to your WordPress site.

  Must I have certain permalink settings?

No. You may use any permalink settings.

  To what page/post will my subdomain map?

Subdomains will map to pages and posts based on the post_name field in the
 database.
The subdomain must match the post_name exactly in order to map, or it will redirect
to the homepage.

  What if I have a fourth, fifth, etc. level domain?

The mapping will be made based on the deepest (left-most) element of the full
 domain
name.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Automatic Subdomains」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ The Jake Group ](https://profiles.wordpress.org/the-jake-group/)

[帮助将「Automatic Subdomains」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/automatic-subdomains)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/automatic-subdomains/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/automatic-subdomains/)，或通过[RSS](https://plugins.trac.wordpress.org/log/automatic-subdomains/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/automatic-subdomains/)。

## 更新日志

#### 1.3

 * Bug Fix: Fixes potential compatibility issue with other plugins.

#### 1.2

 * Bug Fix: Fixes potential redirect loop issue.

#### 1.1

 * Rewrite to rely on post_name instead of page-name and name.
 * Fixed bug causing child level pages not to map appropriately.

#### 1.0

 * Initial launch.

## 额外信息

 *  版本 **1.2**
 *  最后更新：**13 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 2.3 或更高版本 **
 *  已测试的最高版本为 **3.4.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/automatic-subdomains/)
 * 标签
 * [landing pages](https://cn.wordpress.org/plugins/tags/landing-pages/)[permalinks](https://cn.wordpress.org/plugins/tags/permalinks/)
   [subdomains](https://cn.wordpress.org/plugins/tags/subdomains/)
 *  [高级视图](https://cn.wordpress.org/plugins/automatic-subdomains/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/automatic-subdomains/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/automatic-subdomains/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/automatic-subdomains/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/automatic-subdomains/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/automatic-subdomains/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/automatic-subdomains/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/automatic-subdomains/reviews/)

## 贡献者

 *   [ The Jake Group ](https://profiles.wordpress.org/the-jake-group/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/automatic-subdomains/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.thejakegroup.com/)