Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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:
    166
    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,216
    Likes Received:
    10
    Trophy Points:
    313
    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:
    166
    oh, nice. hadn't noticed that feature yet. that will come in useful.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice