Subdomain

setvik - March 21, 2008 - 04:09
subdomain.png

OVERVIEW:
The subdomain module is a lightweight companion to pathauto that extends URL rewriting to subdomains, allowing you to automatically place Drupal site content onto subdomains.

Currently, it supports 4 modes:

  Node Author:
  EXAMPLE: A user named "Mary" and her nodes would be at
  http://mary.example.com

  Node Content Type:
  EXAMPLE: Nodes with a content type of "News" would have URLs like
  http://news.example.com/drupal-is-the-greatest-web-tool-ever

  Taxonomy Vocabulary:
  EXAMPLE: A term named "Seattle" and associated nodes would be at
  http://seattle.example.com

  Organic Group:
  EXAMPLE: A group named "Pizza Lovers" and its nodes would be at
  http://pizza-lovers.example.com

The above are basic examples. You can also specify custom subdomain rewrites.

UPCOMING FEATURES:
I've received several requests to add support for automatically placing blogs and blog content on their own subdomains. Patches are welcome. Alternatively, if you'd like to support development of this feature, $400 would allow me the freedom to allocate a full day to develop and test it.

DEPENDENCIES:
Pathauto

CONFLICTS:
Global Redirect: Using globalredirect at the same time will result in eternal redirect loops when you attempt to access a subdomain.

INSTALLATION:
Please see the included README.TXT file for detailed instructions on how to install this module.

NOTE: subdomain requires changes to your DNS server, web server, and settings.php file. In addition, the 5.x version of subdomain requires a couple of small patches to Drupal core. It's critical that you understand the implications of those changes and how to reverse them should you need to uninstall subdomain or upgrade to a newer version of Drupal. See readme.txt.

Sites using subdomain:
http://eslwell.com

Enjoy!

RELATED MODULES:
Domain Access: If you wish to share content across multiple domains, you might want to try the Domain Access module. Domain Access provides advanced tools for running a group of affiliated sites from one Drupal installation and a single shared database.

DONATIONS:
If you would like to show appreciation for subdomain development, a $3 donation would make my day :-).

SUPPORT:
If you would like to install Subdomain, but are not comfortable patching Drupal or configuring your DNS server / web server, you can contact me to inquire about contracting my help remotely. My rate is $50/hr, minimum $50. Usually takes 1 hour from start to finish.

Releases

Official releasesDateSizeLinksStatus
6.x-1.42008-Sep-2514.93 KBRecommended for 6.xThis is currently the recommended release for 6.x.
5.x-1.52008-Sep-2515.67 KBRecommended for 5.xThis is currently the recommended release for 5.x.


 
 

Drupal is a registered trademark of Dries Buytaert.