How to optimize the website structure

The physical structure of a

site refers to the structure of the actual directory of the web site and the location at which the document is stored.

generally speaking, the better physical structure can have two kinds, one is flat type, that is, all web pages exist under the website root directory. Like this:

https://s.domain.com/pageA.html

https://s.domain.com/pageB.html

https://s.domain.com/pageC.html

…… .

all of these pages are formed at a level in the root directory to form a flat physical structure.

this is more suitable for small sites, because if too many files are placed in the root directory, the production and maintenance are more troublesome, easy to mess up.

second is a tree structure, also is the root directory is divided into a plurality of channels, or categories, directory, no matter what is the name, is a meaning, and then put them on the web that belongs to the channel in each channel below. For example, the channel is divided into:

https://s.domain.com/cat1/

https://s.domain.com/cat2/

https://s.domain.com/cat3/

……

put it in the specific content page under the channel:

https://s.domain.com/cat1/pageA.html

https://s.domain.com/cat1/pageB.html

https://s.domain.com/cat1/pageC.html

……

The second meaning of the

web structure refers to the logical structure or link structure, that is, the logical or linked network diagram formed by the internal links of the pages.

The better thing about

is that the logical structure matches the tree type physical structure in front, that is:

The

home page links to all the channel home pages

The

home page is generally not directly linked to the content page, unless you want to push several special pages,

all channel home pages are connected to the other channel home page

The

channel home page is connected to the home page of the

The

channel home page also links to the content page of your own channel,

channel master >

Leave a Reply

Your email address will not be published.Required fields are marked *