Automatic subdomains

Discussion in 'PHP' started by goliathus, Apr 27, 2008.

  1. #1
    Hi,

    pls do you have any tip for automatic generated sub domains based on mod_rewrite?

    Thanks.
     
    goliathus, Apr 27, 2008 IP
  2. mobilebuzz

    mobilebuzz Banned

    Messages:
    1,108
    Likes Received:
    101
    Best Answers:
    0
    Trophy Points:
    0
    #2
    are u using cpanel?
     
    mobilebuzz, Apr 27, 2008 IP
  3. only1idea

    only1idea Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i don't think you can do this from php
     
    only1idea, Apr 27, 2008 IP
  4. goliathus

    goliathus Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    mobilebuzz: yes, I have hostgator reseller plan with cpanel for each domain

    only1idea: Yes, but I think it is possible by mod_rewrite or any other apache module which can be set up in htaccess (php thread is most close to my problem).
     
    goliathus, Apr 27, 2008 IP
  5. m0nkeymafia

    m0nkeymafia Well-Known Member

    Messages:
    399
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #5
    You need to have a wildcard DNS set up. You can learn how to do this here.
    And you need to catch it in your htacces or apache config. You can also do it directly in PHP here

    You will then need to send it to your PHP script and deal with it there.
     
    m0nkeymafia, Apr 28, 2008 IP