I have a dedicated server on a webhosting company "not godaddy", and I manage my domains through godaddy.
I want to add a new subdomain and want this domain to point to a certain folder in my website.
I tried to add a new record : mysubdomain -> www.mywebsite.com/subfolder but godaddy appeared a message that this is not a right formate.
How to do this?
![](../../users/profiles/978.webp)
- 243
- 3
- 7
- 21
2 Answers
In website hosting context, DNS only maps domain names to server addresses with A (or AAAA) records. Basically that is like telling the system "I want this domain to be hosted by that hoster.".
Everything beyond this is done by your hoster. When you open domain.com
or sub.domain.com
in a browser, the connection can be done to the same server, but different content will be presented, as the webserver can distinguish between these two cases.
Without further information about your hoster this question cannot be answered.
![](../../users/profiles/32352.webp)
- 474
- 1
- 3
- 11
-
You are right, and I asked another question for this there: http://serverfault.com/questions/206999/how-to-make-a-subdomain-point-to-a-page-in-iis7 – Amr Elgarhy Nov 29 '10 at 14:38
If you are using IIS, you will want to check out the web.config settings or for Apache .htaccess settings. You can test this out from a windows machine by modifying C:\Windows\System32\Drivers\etc\hosts and adding the IP address to test it as this is much quicker than waiting the hour for the IP address to be changed on the different servers and finally reach you. Not sure how to do it on Mac or Linux though...