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.

Subdomain directory accessible from domain.com/subdomain too?

Discussion in 'General Discussion' started by Brook, Jan 13, 2008.

  1. Brook

    Brook Well-Known Member

    Joined:
    Apr 22, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    If I create a subdomain such as:

    subdomain.domain.com

    How can I stop the directory:

    domain.com/subdomain

    showing the contents of the subdomain too? Is there anyway I can create a redirect so that anyone going to the /folder always gets redirected to the subdomain?

    Had a search but couldn't find anything.

    Cheers,

    Edit: The subdomains don't work properly here either, eg:

    If you go to this threads page by changing the subdomain to a folder:

    http://forums.cpanel.net/showthread.php?t=74981

    to

    http://cpanel.net/forums/showthread.php?t=74981

    You get some wierd stuff happening!!
     
    #1 Brook, Jan 13, 2008
    Last edited: Jan 13, 2008
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Why not set the base directory of the subdomain to something other than ~/public_html/subdomain? If you are using X3 (highly recommended) you should be able to do this while creating the subdomain.
     
  3. Brook

    Brook Well-Known Member

    Joined:
    Apr 22, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    Thanks David! I was using X hence I didn't get that option.
     
Loading...

Share This Page