domain.com and sub.domain.com are both dynamic. I am using this for akllowing my developers to work on their own copy before publishing to beta.domain.com and then www.domain.com
sub.domain.com => /www/sub/domain.com/html
domain.com => /www/www/domain.com/html
Currently I have :
- Code: Select all
RewriteEngine on
RewriteCond %{HTTP_HOST} [^.]+\.[^.]+$
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ([^.]+)\.(.+) /www/$1/$2
But this does not account for no subdomain and does not send the user to the html folder.
Also how would I go about creating logs? Any suggestions would be appreciated.