Jump to content

Website Directory Structure Help


ultigma

Recommended Posts

I'm trying to figure out what the best way to structure a website's folders, for websitel expansion, before I begin building it. I'll try and explain what i think is best and hopefully get opinions for better site structure. hopefully this can be easily understanded. I'm planning o nthe website to be big so I want to get it rright from the start.

 

-------------------------------------------------------------------------------

  • Public_HTML
    • index.php
    • about.php
    • contact.php
    • /shop/
      • /football/
        • /shirts/
        • /shoes/
      • /tennis/
    • /blog/
      • /football/
        • /uk/
          • post-about-uk-team.php
          • another-post.php
          • more-posts.php
        • /spain/
          • post-about-spanish-team.php
          • you-get-the-idea.php
        • /other/
      • /tennis/
        • /uk/
          • post-about-uk-player.php

Is this the right way to go about structuring a website ooooorrrrrr

-----------------------------------------------------------------------------------

 

Public_HTML

  • index.php
  • about.php
  • contact.php
  • shop.php?category=football
  • shop.php?category=football&item=shirts&product=id
  • shop.php?category=football&item=shoes&product=id
  • shop.php?category=tennis
  • shop.php?category=tennis&item=shirts&product=id
  • shop.php?category=tennis&item=shoes&product=id
  • blog.php?sport=football
  • blog.php?sport=football&country=uk
  • blog.php?sport=football&country=uk&post=id
  • blog.php?sport=tennis

and so on?

 

So tell me, which way are most websites structured? perhaps its a combination of the 2; if so, how would it be structured

 

Thanks for everyones time. All opinions welcomed =)

Link to comment
https://forums.phpfreaks.com/topic/281121-website-directory-structure-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.