Help About Htaccess

Discussion in 'HTML & Website Design' started by x8800, Mar 9, 2010.

  1. #1
    hi everyone

    does any one know how is megauploads subdomain ?

    its really cool :))

    ie. : anydomain.megaupload.com , forum.megaupload.com , digitalpoint.megaupload.com

    the site shows with any subdomain !!! how is that ?

    i heard that is about htaccess commands !

    can anyone help me to do that ?

    [Srry For BAD English]

    Thanks
     
    x8800, Mar 9, 2010 IP
  2. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #2
    If your using cpanel you simply go set up a "subdomain"

    hope that helps,
    Nigel
     
    Nigel Lew, Mar 9, 2010 IP
  3. x8800

    x8800 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes im using cpanel . but that wasn't my purpose

    please look at example about megaupload ! you can open it with any subdomains !

    like : efaq.megaupload.com , ghjdklfhgdjk.megaupload.com !
     
    x8800, Mar 9, 2010 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    kk5st, Mar 9, 2010 IP
  5. outrefranc

    outrefranc Active Member

    Messages:
    94
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    93
    #5
    That's some URL rewriting in their htaccess file.
    I don't know the comand, but you do that with a rewrite condition and a rewrite rule.
     
    outrefranc, Mar 9, 2010 IP
  6. x8800

    x8800 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    thanks all
     
    x8800, Mar 9, 2010 IP
  7. Craig B.

    Craig B. Peon

    Messages:
    8
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can also do it with name based virtual hosts. In Apache, with based virtual hosts enabled, any host name which doesn't match a declared virtual host gets run to the default. So, just turn on name based virtual hosts, add one host for the main site, and point any domains names you want to "alias" to the same IP and you should be done.
     
    Craig B., Mar 9, 2010 IP