Can a CNAME DNS record point from subdirectory address like my.domain.com/one to domain name like my.domain.com? So if the user access my.domain.com in the browser, the DNS will redirect to my.domain.com/one.
Thanks in advance.
Can a CNAME DNS record point from subdirectory address like my.domain.com/one to domain name like my.domain.com? So if the user access my.domain.com in the browser, the DNS will redirect to my.domain.com/one.
Thanks in advance.
Nope. DNS translates CNAMES to the IP address pointed to my their target A record.
No, DNS service is unrelated to Web, you can't do redirections with it. They should be setup in your web server.
Your problem has nothig to do with DNS.
What you need is a redirect in your web server config. You can do this several ways. If you are using apache for example:
1) Using Redirect directive - https://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirect
2) Using ModRewrite - https://stackoverflow.com/questions/990392/htaccess-rewrite-to-redirect-root-url-to-subdirectory