Apache2: Trying to map a subdomain to a subdirectory
- by user1561753
So basically I want to have:
sub.domain.com/anything - domain.com/asub/anything
I'm a bit new to this and a bit confused. The first thing I did was configure my DNS settings so sub.domain.com goes to domain.com using a CNAME (would an A record and the IP be better?)
Next I went into my VirtualHost file and have:
RewriteEngine on
RewriteCond…