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.

Creating subdomains pointing to public_html

Discussion in 'General Discussion' started by spartida, Jun 21, 2007.

  1. spartida

    spartida Registered

    Joined:
    Mar 20, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hello, I've made some searchs on the forum for this issue but haven't found anything (or haven't searched well).

    The problem is that I want to create some subdomains, for example: sub1.example.com and sub2.example.com.

    When I go to Subdomains, I can do that but cPanel always points them to public_html/sub1 and public_html/sub2.

    What I want to achieve is that those subdomains points to public_html/, just like the domain. I can do this by hand or symlinking but I wonder if there is some option or some way to do it from cPanel.

    Thanks.
     
  2. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    No, not possible with the default cPanel setup (or any mod that I'm aware of). Symlink it or use mod_rewrite.
     
  3. 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
    In cPanel 11, simply set the directory for your subdomain to public_html/
     
  4. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    oh, nice. hadn't noticed that feature yet. that will come in useful.
     
Loading...

Share This Page