Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Apr 2005
    Posts
    99

    Default Subdomain directory accessible from domain.com/subdomain too?

    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:

    Subdomain directory accessible from domain.com/subdomain too?

    to

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

    You get some wierd stuff happening!!
    Last edited by Brook; 01-13-2008 at 09:30 PM.

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #3
    Member
    Join Date
    Apr 2005
    Posts
    99

    Default

    Thanks David! I was using X hence I didn't get that option.

Similar Threads & Tags
Similar threads

  1. Replies: 2
    Last Post: 07-24-2007, 08:39 AM
  2. .htaccess to redirect domain.tld/subdomain to subdomain.domain.tld
    By andreseso in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-25-2006, 08:56 AM
  3. Replies: 3
    Last Post: 04-17-2004, 10:16 PM
  4. subdomain directory location
    By mwhitby in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-08-2003, 12:40 AM
  5. Subdomain directory level
    By erapid in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-19-2002, 10:28 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube