Score:-1

Correct way to point a subdomain to another subdomain using CNAME record

km flag

Heyy, I have recently pointed subdomain A to subdomain B using a CNAME record. What bothers me is the browser's address bar, meaning when I visit subdomain A it then automatically shows the url of subdomain B. How can I show just the subdomain A url on the address bar?

I have also pinged subdomain A and correctly shows the IP of subdomain B, I have also added a 301 permanent redirect but same problem persists.

Score:0
ru flag

I have also added a 301 permanent redirect

That's why the browser is redirected to host name B and shows that name.

DNS has no direct connection to HTTP. A browser doesn't care whether it gets a straight A-record name resolution or an indirect one via CNAME. So, if you just set up a CNAME and make your web server respond to that host name you're done.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.