Subdomain when domain typed in

Discussion in 'Programming' started by movidalatina, Nov 16, 2007.

  1. #1
    Hello all, can anyone guide me in how it
    is that i can have the subdomain files come up
    when a domain is typed in.. example: when
    the person types in bagels.com, the files and index
    that comes up, is the subdomain tasty.bagels.com ?
    thanks
     
    movidalatina, Nov 16, 2007 IP
  2. yooozy

    yooozy Well-Known Member

    Messages:
    1,153
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    170
    #2
    just use a simple php redirection to your subdomain page

    <?php
    $URL="tasty.bagels.com/index.htm";
    header ("Location: $URL");
    ?>
    PHP:
    good luck
     
    yooozy, Nov 16, 2007 IP
  3. movidalatina

    movidalatina Well-Known Member

    Messages:
    1,268
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    105
    #3
    ok i'll try that, see if it works.
    thanks

    damn..it did'nt worrk..or im missing
    something prolly.
    this is what im want to achieve right here
    notice the subdomain.
     
    movidalatina, Nov 16, 2007 IP
  4. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #4
    It's missing the http:// in the URL.
     
    krt, Nov 16, 2007 IP