DEV Community

Discussion on: Do you prefer subdomains or subdirectories?

Collapse
 
slimdestro profile image
D\sTro

Creating new directories with same content is like wasting storage and putting extra load on wallet however addons and subdomains are good. Just need to add one more table in the database for url prefix

Collapse
 
andreidascalu profile image
Andrei Dascalu

It's likely that the primal post misuses the term folder as the question clearly refers to the preferred way of serving content, not the actual server storage model.
Aka: whether you put stuff on subdomain or serve via subpaths from the same fqdn.
Whether you actually have folders or it's just internal routing (as you would have in react or symfony) doesn't seem relevant.