Creating subdomains pointing to public_html

spartida

Registered
Mar 20, 2007
3
0
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.
 

elleryjh

Well-Known Member
Apr 12, 2003
475
0
166
No, not possible with the default cPanel setup (or any mod that I'm aware of). Symlink it or use mod_rewrite.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
15
313
Houston, TX
cPanel Access Level
Root Administrator
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.
In cPanel 11, simply set the directory for your subdomain to public_html/