当前位置:首页-诺商动态

网站建设目录结构规划的优化标准

来源:www.lushangyun.cn 时间:2017/01/12

不要将所有文件都存放在根目录下。有网站制作者为了方便,将所有文件都放在根目录下。这样就很容易造成:文件管理混乱,搞不清哪些文件需要编辑和更新,哪些无用的文件可以删除,哪些是相关联的文件,影响工作效率;上传速度变慢,服务器一般都会为根目录建立一个文件索引,如果将所有文件都放在根目录下,那么即使只上传更新一个文件,服务器也需要将所有文件再检索一遍,建立新的索引文件,很明显,文件量越大,等待的时间也将越长。
Do not store all the files in the root directory. There are web site producers in order to facilitate, all the files in the root directory. So it is likely to cause confusion: file management, unclear files need to edit and update, which useless files can be deleted, which is associated with the file, affect the work efficiency; the upload speed is slow, the server will generally establish a file index to the root directory, if you put all the files in the the root directory, even if only upload update a file, the server also need to put all the files to search again, establish the index file, the new file obviously, the greater the amount of waiting time will be longer.
按栏目内容建立子目录。子目录的建立,首先按主栏目建立。友情连接内容较多,需要经常更新的可以建立独立的子目录。而一些相关性强,不需要经常更新的栏目,例如:网站简介、站长情况等可以合并放在一个统一目录下。所有程序一般都存放在特定目录,
According to the contents of the column to create subdirectories. The establishment of subdirectories, according to the main column. Friendship connection content is more, need to be updated frequently can establish independent subdirectory. Some of the strong correlation, do not need to update the columns, such as: Web site profiles, such as the situation can be combined in a unified directory. All programs are stored in a specific directory,

在每个主目录下都建立独立的Images目录。一般来说,一个站点根目录下都有一个默认地Images目录。将所有图片都存放在这个目录里很是不方便,比如在栏目删除时,图片的管理相当麻烦。所以为每个主栏目建立一个独立的Images目录是方便管理的。原因很简单,就是方便维护与管理。
Create a separate Images directory in each home directory. In general, a site root directory has a default Images directory. All the pictures are stored in this directory is very inconvenient, such as in the column delete, the picture is quite troublesome management. Therefore, it is easy to manage a separate Images directory for each column. The reason is very simple, convenient maintenance and management.
其它需要注意的还有:目录的层次不要太深,不要超过3层;不要使用中文目录,使用中文目录可能对网址的正确显示造成困难;不要使用过长的目录,太长的目录名不便于记忆;尽量使用意义明确的目录,以便于记忆和管理。
There are other note: directory level not too deep, not more than 3 layers; do not use Chinese directory, use Chinese directory may be displayed correctly on the web site of the difficult; do not use the directory is too long, too long, the name of the directory is not easy memory; try to use clear meaning in order to facilitate memory and directory management.
以上就是长清网站建设http://www.lushangyun.cn为大家介绍的关于的内容,感谢您在百忙之中查看我公司的信息内容,如果您想要了解的更多,欢迎您来电进行咨询
The above is the Changqing http://www.lushangyun.cn website to introduce about the content, thank you for viewing information content of our busy schedule, if you want to know more, you are welcome to call to consult

 

长清网站建设哪家好