How to set up: page.domain.com

Discussion in 'Web Design and Development' started by James L, Dec 31, 2007.

  1. James L macrumors 6502a

    Joined:
    Apr 14, 2004
    #1
    Hey all,

    I am curious how to set up something like the title indicates.

    Rather than load the page in question into the public HTML folder on my server, which produces this:

    www.domain.com/page.html

    I am wondering how sites set up the server for an address such as:

    page.domain.com

    Any input would be appreciated.
     
  2. WildPalms macrumors 6502a

    WildPalms

    Joined:
    Jan 4, 2006
    Location:
    Honolulu, HI
    #2
    You mean a subdomain? The .html or .htm or equivalent is not showing but is still being referenced.
     
  3. sord macrumors 6502

    Joined:
    Jun 16, 2004
    #3
    And the subdomain is usually setup with BIND (DNS). DNS works downwards, so if you want to go to x.y.foo.com, you first go to com, which gives you the DNS for foo, which gives you the DNS for y, which gives you the DNS for x.
     
  4. TheReef macrumors 68000

    TheReef

    Joined:
    Sep 30, 2007
    Location:
    NSW, Australia.
    #4
    If you have a control panel with your web hosting, go to the subdomains section, and create a new one, with the name you wish to use, eg page for page.website.com

    On mine, the added subdomain appears as a folder in the root level of the server, you can then place your index file in that folder. That index file appears when you go to the url eg page.website.com

    Hope that helps.
     

Share This Page