On a shared hosting I have a public_html
directory where the site is located. There are multiple subdomains created and they are located in the public_html
like public_html/subdomain1
, public_html/subdomain2
etc.
This makes these sub sites accessible in two ways:
1.) domain.com/subdomain1
2.) subdomain.domain.com
What I need is to forbid the first option for every subdomain.
public_html/domain1
,public_html/domain2
etc?