WP Subdomains is a plugin for WordPress that allows you to setup your main categories, pages and authors as subdomains.
The plugin uses the Category slug, Page slug, or Author name as the subdomain name.
You'll need to configure your webserver for each subdomain you want to use. It uses the same wordpress install as your main blog. If you run your own server you should know how todo this already (Apache users can just add ServerAlias to their existing vhost) If you use managed hosting then add a subdomain and set it's document path to that of your main blog.
Be sure to add a DNS entry to point your subdomains to your server.
Note, some hosting services allow a forward all rule that will forward all subdomains to your server.
For each Category you want to convert, edit the category in wordpress admin and enable the "Make Subdomain" option.
For each Page you want to convert, edit the page in wordpress admin and add the custom field
wps_page_subdomain with value "true"
For Author subdomains just switch enable the "Activate Author Subdomains" setting. You cannot pick and choose which authors are subdomains. It is either all or none.
To use the subdomain blog feature (e.g. main page at http://blog.mydomain.com) you’ll need to enter your blog domain (e.g. mydomain.com).
Allows you to disable the plugin functionality whilst still being able to configure it
Makes all main categories into subdomains by default, this can be overridden in the category settings
Enable this if you want to make use of the Page Subdomains feature
Enable this if you want authors to be subdomains. Note you can't configure which authors, it enables them all.
Turns on the custom themes for subdomains so you can have them display in a different theme to your main site
Will give 301 redirects to people coming to Subdomained Categories and Pages on old URLs. Doesn't work yet for posts.
Activate this for links to wordpress Pages to stay on the domain being viewed, unless they are category tied or subdomains themselves.
Activate this for subdomains root pages to be treated as an index page rather than an archive page. (On by default prior to being an option - See NOTES section).
If you're on a Category or Author subdomain then date archives will show only what belongs to that Category/Author
Turns on the ability to tie pages to specific subdomain categories
Viewing Tags on a subdomain will show only the posts that belong to the subdomain you are on.
Will turn this Category into a subdomain
When using "Make all Subdomains" will exclude this category
Select the theme for this category to use, needs "Activate Subdomain Themes" turned on to work
Add a custom title to the links to this subdomain
When viewing this subdomain will filter out pages not tied to it.
To make static pages act like subdomains, create a custom field variable
wps_page_subdomain and set it to true.
To set a theme for a page subdomain, create a custom field variable
wps_page_theme and set it to the theme that you want to use. The theme name is the same as you'll find it on the edit categories page. Themes only work for pages that are setup as subdomains.
To tie a static page to a subdomained category, so that it displays this URL category.yourdomain.com/static-page, create a custom field variable
wps_tie_to_category and set it to the category ID.
To make a page show on all pages even if a category is set to only show tied pages, create a custom field varaible called
wps_showall and set it to true.
If using Subdomains you'll probably want your cookie to span the subdomains and not just your own domain. In order to achieve this you need to add an option to your wp-config.php:
Where mydomain.com is your domain name. Remember to add the preceeding dot (.) as this is what makes it work.
In 0.6.1 Subdomain Roots as Indexes became an option where before it was just on by default. If you want your subdomain root pages treated like your main blog index then switch this on. The differences you'll see are down to how your theme handles an Index compared with an Archive.
Requires: 2.7 or higher
Compatible up to: 2.9.2
Last Updated: 7 years ago
Active Installs: 500+
Got something to say? Need help?