关于url结构一般分为两个部分,一个是物理结构,一个是逻辑结构。在物理结构包括扁平结构和树型结构。扁平结构就是网站中所有的页面都是在根目录这一级别,形成一个扁平的物理结构。这比较适合于小型的网站,因为如果太多文件都放在根目录下的话,制作和维护起来比较麻烦。
about url structure general is divided into two parts, one is the physical structure, one is the logical structure. in the physical structure including flat structure and tree structure. flat structure is of all the pages are web site is in the root directory this level, form a flat physical structure. it is suitable for small web site, because if too many files in the root directory of words, making and maintenance up more trouble.
而树型结构的意义是在一级目录下分为多个频道或者称支为目录,然后目录下面再放上属于这个频道的页面,首页、频道首页、频道下的内容就好比树干、树枝、树叶的关系。逻辑结构就是由网页内部链接所形成的逻辑的或链接的网络图。比较好的情况是逻辑结构与前面的树型物理结构相吻合。以下是从seo角度谈网站url:
and the significance of the tree structure is in a directory divided into a number of channels or say for a directory, and then again below belongs to the directory put this channel page, page, channel, the content of the page channel is trunk, branches, leaves relationship. logic structure is formed by web page internal links the logic of the network chart or a link. better is the logical structure and the tree of the front physical structure are identical with each other. the following is from seo angle talk about web url:
一、url长短问题(the length of the url problem)
基于用户体验来说,我想不管是专业的seo还是普通的浏览用户,首先在搜索引擎地址框上输入一个地址时,必然会考虑这个url好不好记,如果你的url太长,那么我估计没有一个用户会花时间去记你的网站域名,因为不好记,现在的用户是不会花时间去记的,而且太长的url,给人看起来既不美观,更不方便记忆,也不利于ueo。如果你是短的,那么用户必然可以轻易记得,简短好记就很不错了。
based on the user experience for, i think whether it is professional seo or ordinary browsing the user, the first in search engine address on the box enter a address, the inevitable will consider this url is good to remember that if your url is too long, so i estimate without a user will take the time to remember your site domain name, because bad record, now of the user is not take the time to remember, and too long url, give a person looks both neither is beautiful, less convenient memory, also go against ueo. if you are short of, so the user can easily must remember, a brief note very pretty good.
二、url目录层问题(url directory layer of issues)
url目录层次问题也是seoer重点考虑的一个因素,url层数是按照距离来计算的,搜索引擎一般会用宽度优先搜索的方法来搜集网页,也就是说,搜索引擎会先搜集网站的首页,然后看首页上有哪些链接,然后先将这些链接抓过一次,再继续抓下一层的链接。因此,对于搜索引擎来说,在网站首页上的链接就是第一层的链接!
url directory level problem is also seoer consider mainly a factor, url layer is calculated according to the distance, search engines usually use width first search methods to collect web page, that is, the search engines will be the first to collect the website homepage, and then see what are the links on the home page, and then to catch these links once, continue to catch the next layer of links. so, for a search engine, it on your home page link is the first layer of the link!
而通过第一层链接才能到达的链接就是第二层的链接,以此类推。有很多seoer以为url的长与短就是url的层次,其实不是的,以上的理念已经告诉我们,一个网站的目录深浅并不是看url的长与短,而是从你网站的第一口进去,然后要经过几个口才能到达网站的最深处,其中经过的口,就是你的目录层次,一般来说目录层次最好不要超过3层。
and through the first layer link to get to link is the second link, and so on. have a lot of seoer thought long and short url is the level of url fact not, above the idea has been told us, a web site directory and not see the depth is long and short url, but from your website's first bite in, and to go through several mouth to get to the deepest part of the site, including through the mouth of your inventory level is, in general, had better not exceed 3 level directory layer.
三、静态化与动态化问题(static and dynamic problems)
网站设计在选取一个url地址时,就会考虑这个网站的意义性,长与短,基本性的考虑完了后,就是url静态化问题了,这是大家比较关心的一个方面。seo建议就是如果可以的话就用静态化的url,虽然如今搜索引擎对动态的url抓取没以前那么吃力了,但是静态的url可以给搜索引擎与用户一个直观与美观的地址。
web design in selecting a url, it will consider this website significance, long and short, fundamental consideration after finished, is static url problem, this is everybody cares quite a ways. seo suggest is that if you can with static url, although now search engine to dynamic url grab less so exhausting, but static url can give search engines and the user an intuit