Easy Subdomains

Easily show page on subdomains based on page slug.

Author:Praveen Singh Shekhawat | WordPress King (profile at wordpress.org)
WordPress version required:2.3
WordPress version tested:3.8.1
Plugin version:1.0.1
Added to WordPress repository:07-02-2014
Last updated:18-02-2014
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:96
Rated by:5
Plugin URI:http://www.phpczar.com/blog/
Total downloads:459
plugin download
Click to start download

The purpose of this plugin is to facilitate deployment of subdomain links to a page as landing pages on a WordPress website. The plugin Easily maps subdomains to page permalinks based on the post_name field in the database.

There are no administrative setting page.

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 Easily check to see if the subdomain matches a page or post name. If so, the WordPress query is get that page/post id and set as page on front {page_on_front}. The subdomain page is home page now if you go to any other page then home page is again changed as per site default settings.

Example:

URL → Mapping
http://example.com → default homepage (no domain mapping)
http://www.example.com → default homepage (no domain mapping)
http://test-page.example.com → now default test-page is homepage (with domain mapping)
http://mypost.example.com → now default mypost is homepage (with domain mapping)