--- .htaccess 2007-10-05 23:43:23.000000000 +0900 +++ .htaccess 2008-06-12 08:54:53.000000000 +0900 @@ -94,6 +94,17 @@ DirectoryIndex index.php # uncomment the following line: # RewriteBase / + # REQUIRED BY SUBDOMAIN.MODULE + # Moves subdomain to URI path + # e.g: mysubdomain.example.com + # becomes example.com/index.php?_mysubdomain/ + # NOTE: does not rewrite subdomain if it is "www". + # If you want it to rewrite www, disable the 2nd line + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{HTTP_HOST} !^www\.([^.]+)\.([^.]+)$ + RewriteCond %{HTTP_HOST} ^([^.]+)\.([^.]+)\.([^.]+)$ + RewriteRule ^(.*)$ index.php?q=~%1/$1 [L,QSA] + # Rewrite URLs of the form 'index.php?q=x'. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d