I believe you're looking at a CNAME entry wherever your DNS for that domain is hosted.hi there, i hope you are doing great !
i recent bought blog.domain.com from namecheap,
i have 1 server - 1 IP adress i use it for blog.domain.com
how can i set : when browsing domain.com go to blog.domain.com
hello - my english is not good - by homework you are joking ?good homework question. this will have to be configured on your local server side.
look in your text for dns records section and in there you shall find your answer.
that's all the hint you get since we have a policy of not helping with homework on the site![]()
Where is your DNS for domain.com hosted? That is where you need to create a new CNAME record.yes i bought domain.com - and i created subdomain this subdomain is related to my ip
i'm asking how can my domain always be redirected to my subdomain.
example :
browsing : www.domain.com redirect to blog.domain.com
understood, i'll try to set up as you said.no problem, the answer is still by setting the redirect in the dns records. you tell the server than any traffic coming in for www.domain.com should instead go to blog.domain.com by name or its ip address inside the network.
read up on dns records. its not that hard but needs to be done right.
here's a quick explenation but you will need to look up how to set it in whatever server software you are using
domain -> namecheapWhere is your DNS for domain.com hosted? That is where you need to create a new CNAME record.