Is it possible to use .htaccess to rewrite a sub domain to a directory?
Example:
shows the content of
This redirects to the same folder to a subdomain:
RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{HTTP_HOST} ^([^\.]+)\.domain\.com$ [NC] RewriteRule ^(.*)$ http://domain\.com/subdomains/%1