Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2009
    Location
    Lusby, Maryland, United States
    Posts
    204

    Default Subdomains Default Directory

    Can the default directory suggestion for the cPanel addition of the subdomains be changed from something like HOME/public_html/ to HOME/subdomains/? I encountered a problem that if you have the following as being true in your normal www account, your subdomains won't work...

    .htaccess
    Code:
    Redirect /index.html http://www.thesamedomain.com/somedir/something.else
    This a pretty common .htaccess for those with items like WordPress, vBulletin, etc. One of your Tech Support folks figured this out... "This redirects all requests coming into the account to this page, and it would impact the subdomains as well". Once I shifted the subdomains to a scheme above, they worked like a champ.

    I do not know if items like parked and add-on domains are effected, but this would apply to them also.

    Thanks,
    Frank
    Last edited by fkatzenb; 01-14-2010 at 06:59 AM.

  2. #2
    Member
    Join Date
    Sep 2009
    Location
    Lusby, Maryland, United States
    Posts
    204

    Default

    I have provided some further data below and I think a lot more people struggle from this than realized.

    If
    your subdomain resides here
    Code:
    /home/account/public_html/a_subdomain
    and
    Code:
    /home/account/public_html/.htaccess
    contains
    Code:
    Redirect /index.html http://www.yourdomain.com/anything.here
    then
    Code:
    http://a_subdomain.yourdomain.com
    will not work.


    To Fix
    move your subdomain directory to something like
    Code:
    /home/account/subdomain/a_subdomain

Similar Threads & Tags
Similar threads

  1. Default directory for IP
    By ryanjones in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-12-2011, 01:10 PM
  2. Directory not creating/also subdomains
    By gillz in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-02-2008, 08:12 AM
  3. Subdomains directory
    By jackald in forum New User Questions
    Replies: 1
    Last Post: 09-10-2007, 11:55 AM
  4. Making Different directory scheme for subdomains?
    By Xenon101 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-10-2005, 05:46 AM
  5. subdomains enabled by default
    By rich2 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-14-2002, 11:54 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube