Is it possible to use .htaccess to rewrite a sub domain to a directory?
Example:
shows the content of
Try to putting this .htaccess file on subdomain folder:
RewriteEngine On RewriteRule ^(.*)?$ ./subdomains/sub/$1
It redirects to http://domain.com/subdomains/sub/, when you only want it to show http://sub.domain.com/