Simple URL's by putting everything in the root

Hello! I was working on a simple url generator, but than i though to myself, why not put everything in the root. I’ve heard thats not a good idea, but i’m ot sure why. I can immagine it gets really messy when you have a lot of files, but its also easy, if you ask me.

I was just wondering what your view on this is. What are the pros and what are the cons?

Thanks :smiley:

for me its about organization if you have things grouped into folder your structure is neat and when looking for a certain file you know where to access it from.

The pros it easier to manage I don’t see any cons for this, depending on how your site works it may take more time to update the urls

Hi there,

To add to what daveismyname is saying, if your website ever gets to a point where you need subdomains or SSL secure sections of your website, you are going to have to use subdirectories in your root directory. But like my predecessor has stated, it’s more about the organization of your directories and the fact that you may not and will not always be the only person looking at your directories of your site.

Hope this helps.

Sponsor our Newsletter | Privacy Policy | Terms of Service