Subdomain redirecting to another server

前端 未结 1 581
情深已故
情深已故 2021-02-02 16:50

I have a website hosted on a shared hosting plan. My domain name is registered at GoDaddy, and the nameservers are those of my shared hosting (so far, all normal).

But I

相关标签:
1条回答
  • 2021-02-02 17:13

    Yes it is possible. In the GoDaddy Control Panel, edit your DNS Zone File and add a "A record" for the subdomain. You should already have a A record for your main domain mapped to "@". Add a new entry using the subdomain prefix as host, e.g.:

    Host    Points To
    
    @       <main domain IP address>
    sub     <subdomain IP address>
    

    The second line should allow you to access the subdomain using sub.mydomain.com, while the main domain will still be accessible using mydomain.com.

    0 讨论(0)
提交回复
热议问题