內容簡介
這個外掛的目的是為了方便將子網域連結部署在 WordPress 網站的擴展頁面上。這個外掛會根據資料庫中 post_name 欄位自動將子網域映射到頁面和文章永久連結。
這個外掛不會進行任何管理設置。
這個外掛不會編輯 DNS 區域文件。子網域 DNS 記錄需要個別設置或作為 DNS 區域文件中的通配符記錄來映射到網站目錄。一旦請求到達 WordPress 系統,外掛將自動檢查子網域是否與頁面或文章名稱相匹配。如果匹配,WordPress 查詢就會編輯為以永久連結方式取回該頁面或文章。排除 WordPress siteurl 和裸的二級域名。
示例映射:
URL → 映射
http://example.com → 首頁(不進行映射)
http://www.example.com → 首頁(不進行映射)
http://test-page.example.com → example.com/test-page/
http://mypost.example.com → example.com/mypost/
外掛標籤
開發者團隊
原文外掛簡介
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/
