CNAME DNS Record – Can It Point to a Subdirectory?

cname-recorddomain-name-system

Can a DNS record point to an address like my.domain.com/subdir1

Best Answer

DNS records only map IP addresses to hostnames so in a word, no

You could, however, use a hostname configuration in your web server to serve a subdirectory when a request comes in. Like having something.domain.com redirect/equate to somethingelse.domain.com/downhere. That would depend on your web server software, not DNS.