Subdomain becomes subdir of main domain, can I avoid that?

Rog

Verified User
Joined
Sep 27, 2016
Messages
20
I want to add some subdomains, but I noticed that the directory for e.g. "something.example.com" is automatically set to public_html/something (as also mentioned in this help page). This means that something.example.com is also accessible through www.example.com/something.

I'd like to avoid this, is there are way to move the dir outside the main site's public_html dir? So to have the main and sub domain each using a completely independent public_html dir?
 
I'd like to avoid this, is there are way to move the dir outside the main site's public_html dir? So to have the main and sub domain each using a completely independent public_html dir?

Hi,

In that case you should added the subdomain as a domain name. That way you will get the result you desire and you can create emailadres like [email protected]

Regards, Niels
 
Hi,

In that case you should added the subdomain as a domain name. That way you will get the result you desire and you can create emailadres like [email protected]

Regards, Niels

Then also a different IP is possible.
And SSL as example Encrypt has is own Certificate separate from domain.

Take care if settings SPF DMARC DKIM and co, depending on wich mailservers und rules where you using for the domain and separate the subdomain.
Not that in some setting for these you "disable" subdomain mail with that.!
 
Last edited:
Back
Top