Subdomains plus subdirectory
From The Lyceum Wiki
[edit]
Problem
We have an existing web site at http://example.com/ and we want to offer subdomains of example.com to chapters of our organization.
So we want http://example.com/lyceum/ to be the root for Lyceum admin things, and http://chapter.example.com/ to be a subdomain blog.
[edit]
Solution
It Just Worked. You configure things as you normally would for example.com/lyceum/:
define('WEBROOT', '/lyceum');
define('MAINDOMAIN', 'example.com');
And you just have two sets of RewriteRules: One with RewriteBase set to /lyceum/ (in the example.com virtual host), and one with RewriteBase set to / (in each chapter.example.com vhost).
