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

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://tw.wordpress.org/plugins/automatic-subdomains/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/automatic-subdomains/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/automatic-subdomains/#installation)
 * [開發資訊](https://tw.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 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.4.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/automatic-subdomains/)
 * 標籤:
 * [landing pages](https://tw.wordpress.org/plugins/tags/landing-pages/)[permalinks](https://tw.wordpress.org/plugins/tags/permalinks/)
   [subdomains](https://tw.wordpress.org/plugins/tags/subdomains/)
 *  [進階檢視](https://tw.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/)