The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Auto SubDomain

Discussion in 'General Discussion' started by HotShells, Apr 15, 2007.

  1. HotShells

    HotShells Member

    Joined:
    Jun 8, 2005
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Alexandria - EGYPT
    Am try to do is auto subdomain,
    now i have that system that auto make subdomains..
    when a members register at my website ( lets say dode.com ) he auto get a subdomain:

    user.dode.com

    now the Cpanel add subdomains but i can't get to make that auto.

    my script function user is:

    http://www.domain.com/member.php?member=username

    i need that to be:

    http://username.domain.com

    i try .htaccess placeing:

    Code:
    RewriteEngine On
    Options +FollowSymlinks
    RewriteBase /
    
    
    RewriteCond %{HTTP_HOST} ^*.domain.com$
    RewriteRule ^(.*)$ http://www.domain.com/member.php [R=301,L]
    
    but never work :confused:

    any idea please ?
     
  2. ste@kmh-hosting

    Joined:
    Apr 4, 2005
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    method ive been thinking about, redirect all miscellanies (*.domain.com) wildcards

    then use php to get the current page location and then use that?


    ste
     
  3. HotShells

    HotShells Member

    Joined:
    Jun 8, 2005
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Alexandria - EGYPT
    no idea

    sorry, i don't understand your point... yet.
    can it be done? or not?
     
Loading...

Share This Page