Thread: subdomain /DNS

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    2
    Rep Power
    0
    L.S.

    Recently I came across a site http://www.startpagina.nl (sorry it's dutch).
    It doesn't matter what subdomain I enter I always end up at the main site.
    example : http://abcdefg.startpagina.nl

    How do they do this ??
    Anybody an idea ?

    Gaafgassie
  2. #2
  3. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Colchester, England
    Posts
    131
    Rep Power
    14
    Within the header of http://abcdefg.startpagina.nl is a pointer to http://www.startpagina.nl.

    If the above was coded in php http://abcdefg.startpagina.nl would look like this:
    <?php
    Header("Location: http://www.startpagina.nl ");
    ?>

    Andy J

    [This message has been edited by eaamj01 (edited October 11, 2000).]
  4. #3
  5. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    18
    It's done in the DNS server. It's just a wildcard so that any non-defined 3rd level points to www.
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    2
    Rep Power
    0
    Can this be done with M$-DNS ??
    (yes , my company uses it and it's not my choice)

    Gaafgassie


  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    1
    Rep Power
    0
    I do the same thing at my site with the following Apache directive:
    DirectoryIndex index.php index.htm index.html /index.php

    The last entry uses my top-level index page if the others do not exist.

    ------------------
    Chris Norcross
    http://www.betasector.com
    chris@betasector.com

IMN logo majestic logo threadwatch logo seochat tools logo