I need to park a domain via DNS, note that my main website is not hosted on any hosting because I wanted the content to appear from another hosting that has a subdomain, example domain.com/mydomain, what do I need to do to configure this for when people access it? mydomain.com appears the same content as domain.com/mydomain?
Help me please , i dont know do that
2
Answers
Do I need to set up an A record and a CNAME? I don't know the IP address where my website is hosted, how do I find out since it's in a long link, example mydomain.business.com/web/mywesite
First, I assume that you own both domain.com and mydomain.com so that you can modify the required settings
In the DNS, please set up the mydomain.com as having the same A record pointing to the IP address of server hosting the domain
domain.com
(or instead of A record you can use CNAME, of course)Now, assuming that the domain.com points to virtual directory /var/www/domain.com/, then on the web server hosting domain.com, modifiy the httpd configuration as follows (assuming we are talking about apache):
BTW, your question has nothing to do with
PHP