DEV Community

Discussion on: Do you prefer subdomains or subdirectories?

Collapse
 
kant312 profile image
Quentin Delcourt

I've had so many problems with subpath in the past that I always end up using subdomains. If we really are talking about separate applications of course. To create these applications we use underlying web systems such as localStorage, sessionStorage or cookies that all expect a specific domain. If you use a subpath, you are sharing data between application and potentially losing bandwidth for transmitting information an application don't care at all. Because of this and server configuration reasons, I tend to avoid subpath if possible.