Subdomains, possible?

I'm trying to have subdomains use one Statamic instance. Apparently, this is doable, but I haven't figured it out.

If I use Statamic for the project, it will take over the main domain. But for the moment I'm testing in a sub-subdomain, because there's a Drupal parked on the main domain. (I'm guessing the same principle holds, but I mention it in case it doesn't.)

Here's the relevant part of my .htaccess, based on Fred's:

RewriteCond %{HTTP_HOST} !^www\.statamic.examplesite\.org$ [NC] # not needed now, but it will be
RewriteCond %{HTTP_HOST} !^statamic.examplesite\.org$ [NC]
RewriteCond %{HTTP_HOST} ^([^\.]+)\.statamic.examplesite\.org$ [NC]
RewriteRule ^$ /subdomain/%1 [P,QSA,L]

I have set up this file: _content/subdomain/

If I try to access I should see the content of that page, but I don't.


>>>>>>> Unanswered <<<<<<<
8 Replies